modified: install/chmod.sh

modified:   install/openwrt.sh
modified:   install/pacman.sh
modified:   install/tree_cpy.sh
modified:   usr/bin/aur
modified:   usr/bin/brc
new file:   usr/bin/idea
modified:   usr/bin/mountcrypt
new file:   usr/bin/regex_gen
modified:   usr/etc/pam.d/system-local-login
modified:   usr/etc/resolv.conf
modified:   usr/etc/systemd/resolved.conf
modified:   usr/etc/systemd/system/tcpd.service
modified:   usr/home/.bash_aliases
modified:   usr/home/.bashrc
This commit is contained in:
archikid08
2026-02-23 18:27:06 +01:00
parent 17c83d081a
commit 08f385e20f
15 changed files with 53 additions and 67 deletions
-1
View File
@@ -10,7 +10,6 @@ chmod -R 771 $BIN_DIR
chmod -R 751 $SBIN_DIR chmod -R 751 $SBIN_DIR
find $MACHINE_DIR -type d -exec chmod 775 {} \; find $MACHINE_DIR -type d -exec chmod 775 {} \;
chown root:root /etc/pam.d/* chown root:root /etc/pam.d/*
chmod 644 /etc/pam.d/*
exit 0 exit 0
Regular → Executable
View File
+1
View File
@@ -31,6 +31,7 @@ pacman --noconfirm -S makepkg
pacman --noconfirm -S tree pacman --noconfirm -S tree
pacman --noconfirm -S vim pacman --noconfirm -S vim
pacman --noconfirm -S iwctl pacman --noconfirm -S iwctl
pacman --noconfirm -S ncdu
pacman --noconfirm -S pciutils pacman --noconfirm -S pciutils
pacman --noconfirm -S git-filter-repo pacman --noconfirm -S git-filter-repo
pacman --noconfirm -S xorg-setxkbmap pacman --noconfirm -S xorg-setxkbmap
+1 -3
View File
@@ -9,6 +9,4 @@ USR_DIR=$(realpath $USR_DIR)
#uses ssymbolic link otherwise crossdevice troubles #uses ssymbolic link otherwise crossdevice troubles
cp -s -p -r -f -t / $USR_DIR/. cp -s -p -r -f -t / $USR_DIR/.
sudo chown root:root / sudo chown root:svr /etc /var /run /dev /usr /sys /
sudo chown root:root /etc /var /run /dev /usr /sys
sudo chmod 755 / /etc /var /usr
+6 -1
View File
@@ -1,6 +1,11 @@
#!/bin/bash #!/bin/bash
aur () aur ()
{ {
git clone https://aur.archlinux.org/$1.git DIR=~/tmp
echo "note: ceci est un script maison"
mkdir $DIR
git clone https://aur.archlinux.org/$1.git $DIR/$1
cd $DIR/$1
makepkg -si
} }
aur "$@" aur "$@"
+1 -2
View File
@@ -2,8 +2,7 @@
set -e set -e
MACHINE_DIR=${1:$MACHINE_DIR} MACHINE_DIR="/svr"
MACHINE_DIR=${MACHINE_DIR:-"/svr"}
F_NAME=".bashrc"; F_NAME=".bashrc";
cd "$MACHINE_DIR/usr/home"; cd "$MACHINE_DIR/usr/home";
commit_if_modified "$F_NAME" commit_if_modified "$F_NAME"
+1
View File
@@ -0,0 +1 @@
/home/painpain/Desktop/idea-IU-253.30387.90/bin/idea
Regular → Executable
View File
+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/env python3
import subprocess
import sys
# Ensure exrex is installed
try:
import exrex
except ImportError:
subprocess.check_call([sys.executable, "-m", "pip", "install", "exrex"])
import exrex
import argparse
def main():
parser = argparse.ArgumentParser(description="Generate all possibilities from a regex")
parser.add_argument("regex", type=str, help="Regex pattern (finite)")
args = parser.parse_args()
try:
for match in exrex.generate(args.regex):
print(match)
except Exception as e:
print(f"Error: {e}", file=sys.stderr)
if __name__ == "__main__":
main()
Regular → Executable
View File
+1 -5
View File
@@ -1,7 +1,3 @@
nameserver 1.1.1.1 nameserver 1.1.1.1
nameserver 0.0.0.0 nameserver 0.0.0.0
nameserver 8.26.56.26
nameserver 208.67.222.222
nameserver 209.244.0.3
nameserver 8.8.8.8
-44
View File
@@ -1,44 +0,0 @@
# This file is part of systemd. -> systemctl enable --now systemd-resolved
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file (or a copy of it placed in
# /etc/ if the original file is shipped in /usr/), or by creating "drop-ins" in
# the /etc/systemd/resolved.conf.d/ directory. The latter is generally
# recommended. Defaults can be restored by simply deleting the main
# configuration file and all drop-ins located in /etc/.
#
# Use 'systemd-analyze cat-config systemd/resolved.conf' to display the full config.
#
# See resolved.conf(5) for details.
[Resolve]
# Some examples of DNS servers which may be used for DNS= and FallbackDNS=:
DNS=1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001 #cloudflare-dns.com
# Quad9: 9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
FallbackDNS=193.110.81.0 185.253.5.0 2a0f:fc80:: 2a0f:fc81:: #dns0.eu
#
# Using DNS= configures global DNS servers and does not suppress link-specific
# configuration. Parallel requests will be sent to per-link DNS servers
# configured automatically by systemd-networkd.service(8), NetworkManager(8), or
# similar management services, or configured manually via resolvectl(1). See
# resolved.conf(5) and systemd-resolved(8) for more details.
#DNS=
#FallbackDNS=9.9.9.9#dns.quad9.net 2620:fe::9#dns.quad9.net 1.1.1.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 8.8.8.8#dns.google 2001:4860:4860::8888#dns.google
#Domains=
DNSSEC=yes
DNSOverTLS=yes
MulticastDNS=yes
LLMNR=yes
Cache=yes
CacheFromLocalhost=no
DNSStubListener=yes
#DNSStubListenerExtra=
ReadEtcHosts=yes
#ResolveUnicastSingleLabel=no
#StaleRetentionSec=0
#RefuseRecordTypes=
+1 -1
View File
@@ -4,7 +4,7 @@ After=network.target
[Service] [Service]
Type=simple Type=simple
ExecStart=/svr/usr/bin/tcpd /var/log/connections/lasts.tcpd ExecStart=/usr/bin/tcpdump
Restart=always Restart=always
[Install] [Install]
+11 -1
View File
@@ -24,9 +24,19 @@ alias val="valgrind --leak-check=full --show-leak-kinds=all"
alias mvj='rsync -aH --remove-source-files' alias mvj='rsync -aH --remove-source-files'
alias cpj='rsync -aH' alias cpj='rsync -aH'
alias git_light="git filter-repo --strip-blobs-bigger-than 10M" alias git_light="git filter-repo --strip-blobs-bigger-than 10M"
alias src="source ~/.bashrc"
alias s="sudo -E" alias s="sudo -E"
function src() {
d="$PWD"; while [ "$d" != "/" ]; do
for a in "$d/bin/activate" "$d/.*/bin/activate"; do
[ -f $a ] && source "$a" && break 2
done
d=$(dirname "$d")
done
source $HOME/.bashrc
}
##convert mp3 to wav ##convert mp3 to wav
#to_wav () { #to_wav () {
# OUTDIR_NAME="wav_files" # OUTDIR_NAME="wav_files"
-5
View File
@@ -122,21 +122,16 @@ export AWK_GREP_KEY="'{
} }
}'" }'"
#ctags -R .
bind -f /home/.inputrc bind -f /home/.inputrc
if [ -f /home/.bash_aliases ]; then if [ -f /home/.bash_aliases ]; then
. /home/.bash_aliases . /home/.bash_aliases
fi fi
# permet les accents # permet les accents
setxkbmap us -variant intl setxkbmap us -variant intl
source $PY_ENV/bin/activate
#envsubst < ${MACHINE_PATH}/dotfiles/ssh/config.template > ~/.ssh/config #envsubst < ${MACHINE_PATH}/dotfiles/ssh/config.template > ~/.ssh/config
#export PATH=~/.npm-global/bin:$PATH #export PATH=~/.npm-global/bin:$PATH