From 8b43138aa73b5dd099799f7af7a7cfb96b27616a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 15 Dec 2024 18:50:19 +0100 Subject: [PATCH 01/10] Add xsv --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0aa2d2f..c4c0324 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ pacman -S cargo-audit cargo-outdated cargo-release rustup # Python pacman -S python ruff uv # CLI software -pacman -S dog exiv2 gnupg imagemagick mkcert ncdu nmap pass playerctl python-shodan python-weasyprint qrencode rsync shellcheck sqlmap ssh-audit yt-dlp +pacman -S dog exiv2 gnupg imagemagick mkcert ncdu nmap pass playerctl python-shodan python-weasyprint qrencode rsync shellcheck sqlmap ssh-audit xsv yt-dlp # Hyprland pacman -S hyprland xdg-desktop-portal-hyprland wofi qt5-wayland qt6-wayland pacman -S pipewire wireplumber pipewire-audio pipewire-alsa pipewire-pulse pipewire-jack pipewire-x11-bell From e57023b16b19e9fe6dbe32677612af75f3aeff77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 15 Dec 2024 20:35:42 +0100 Subject: [PATCH 02/10] Remove Ryzom --- .config/rodolphe/.aliases | 1 - 1 file changed, 1 deletion(-) diff --git a/.config/rodolphe/.aliases b/.config/rodolphe/.aliases index b7f8859..b3b6d0a 100644 --- a/.config/rodolphe/.aliases +++ b/.config/rodolphe/.aliases @@ -12,7 +12,6 @@ alias du='du -ch' alias ip='ip --color' alias ipb='ip --color --brief' alias mount_ro='mount -o ro,noexec,noatime,nodev,nosuid,noiversion' -alias ryzom_season_change='date --date $(wget -q -O - "https://api.ryzom.com/time.php?format=xml" | sed "s/>\n/\(89-/" | sed "s//\(23-/g" | sed "s/<\/day_of_season>/\)\*72/" | sed "s/<\/time_of_day>/\)\*3/" | bc | tr "\n" "+" | sed "s/\+$/\n\"min\"\n/" | bc | tr -d "\n")' hash tree 2>/dev/null && alias t='tree' hash duf 2>/dev/null && alias du='duf' hash htop 2>/dev/null && alias top='htop' From 81a22aea96ec33a02ef454450ada9f94f3329f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 15 Dec 2024 20:36:07 +0100 Subject: [PATCH 03/10] Remove webcam_dslr --- .config/rodolphe/.aliases | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.config/rodolphe/.aliases b/.config/rodolphe/.aliases index b3b6d0a..e353490 100644 --- a/.config/rodolphe/.aliases +++ b/.config/rodolphe/.aliases @@ -42,16 +42,6 @@ if hash yay 2>/dev/null; then } fi -if hash gphoto2 2>/dev/null; then - if hash ffmpeg 2>/dev/null; then - if modinfo v4l2loopback >/dev/null 2>&1; then - webcam_dslr() { - gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 - } - fi - fi -fi - # https://github.com/OpenXRay/xray-16 if hash xr_3da 2>/dev/null; then alias stalker_shadow_of_chernobyl='xr_3da -soc' From 67a2501555ebc0b9fd567b75f17556a9d5e74d05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 15 Dec 2024 20:37:07 +0100 Subject: [PATCH 04/10] Remove istheinternetonfire --- .config/rodolphe/.aliases | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.config/rodolphe/.aliases b/.config/rodolphe/.aliases index e353490..03df9a5 100644 --- a/.config/rodolphe/.aliases +++ b/.config/rodolphe/.aliases @@ -24,17 +24,6 @@ hash kitty 2>/dev/null && alias kitty_ssh='kitty +kitten ssh' hash nvim 2>/dev/null && alias vim='nvim' hash helix 2>/dev/null && alias hx='helix' -if hash dig 2>/dev/null; then - istheinternetonfire() { - txt=$(dig +short txt istheinternetonfire.com) - if hash cowsay 2>/dev/null; then - echo "$txt" | cowsay - else - echo "$txt" - fi - } -fi - if hash yay 2>/dev/null; then reinstall_pattern() { PATTERN="$1" From bcbc232dd757292cc7e41f96ee9ba9c4fe379028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 15 Dec 2024 20:37:57 +0100 Subject: [PATCH 05/10] Remove xscreensaver-command --- .config/rodolphe/.aliases | 1 - 1 file changed, 1 deletion(-) diff --git a/.config/rodolphe/.aliases b/.config/rodolphe/.aliases index 03df9a5..bbc6499 100644 --- a/.config/rodolphe/.aliases +++ b/.config/rodolphe/.aliases @@ -16,7 +16,6 @@ hash tree 2>/dev/null && alias t='tree' hash duf 2>/dev/null && alias du='duf' hash htop 2>/dev/null && alias top='htop' hash clang-format 2>/dev/null && alias clang-format='clang-format -style="{BasedOnStyle: llvm, IndentWidth: 4, AllowShortFunctionsOnASingleLine: None, KeepEmptyLinesAtTheStartOfBlocks: false}"' -hash xscreensaver-command 2>/dev/null && alias lock='xscreensaver-command --lock' hash sqlmap 2>/dev/null && alias sqlmap='sqlmap --user-agent="Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"' hash sqlmap 2>/dev/null && alias sqlmap-tor='sqlmap --tor --tor-type=SOCKS5' hash jmtpfs 2>/dev/null && alias mount_android='jmtpfs "/media/android"' From 24d05bb540a5a791930716867fc943a8b981f898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 15 Dec 2024 20:38:27 +0100 Subject: [PATCH 06/10] Remove mount_android --- .config/rodolphe/.aliases | 1 - 1 file changed, 1 deletion(-) diff --git a/.config/rodolphe/.aliases b/.config/rodolphe/.aliases index bbc6499..6974187 100644 --- a/.config/rodolphe/.aliases +++ b/.config/rodolphe/.aliases @@ -18,7 +18,6 @@ hash htop 2>/dev/null && alias top='htop' hash clang-format 2>/dev/null && alias clang-format='clang-format -style="{BasedOnStyle: llvm, IndentWidth: 4, AllowShortFunctionsOnASingleLine: None, KeepEmptyLinesAtTheStartOfBlocks: false}"' hash sqlmap 2>/dev/null && alias sqlmap='sqlmap --user-agent="Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"' hash sqlmap 2>/dev/null && alias sqlmap-tor='sqlmap --tor --tor-type=SOCKS5' -hash jmtpfs 2>/dev/null && alias mount_android='jmtpfs "/media/android"' hash kitty 2>/dev/null && alias kitty_ssh='kitty +kitten ssh' hash nvim 2>/dev/null && alias vim='nvim' hash helix 2>/dev/null && alias hx='helix' From e72fa461f7f682d5747ca651d7dfb0ae7e668fc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 15 Dec 2024 20:40:22 +0100 Subject: [PATCH 07/10] Remove du -ch --- .config/rodolphe/.aliases | 1 - 1 file changed, 1 deletion(-) diff --git a/.config/rodolphe/.aliases b/.config/rodolphe/.aliases index 6974187..34fd742 100644 --- a/.config/rodolphe/.aliases +++ b/.config/rodolphe/.aliases @@ -8,7 +8,6 @@ alias sudo='sudo ' alias grep='grep -n --color=auto' alias j='jobs' alias df='df -h' -alias du='du -ch' alias ip='ip --color' alias ipb='ip --color --brief' alias mount_ro='mount -o ro,noexec,noatime,nodev,nosuid,noiversion' From bd6417336d664df665d54733043fa6e09dc2456b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 15 Dec 2024 20:46:31 +0100 Subject: [PATCH 08/10] Reorganize aliases --- .config/rodolphe/.aliases | 50 +++++++++++++++++++++++++++------------ 1 file changed, 35 insertions(+), 15 deletions(-) diff --git a/.config/rodolphe/.aliases b/.config/rodolphe/.aliases index 34fd742..a0cfcb2 100644 --- a/.config/rodolphe/.aliases +++ b/.config/rodolphe/.aliases @@ -1,32 +1,45 @@ +# +# Aliases for ls +# + [ "$(uname -s | tr '[:upper:]' '[:lower:]')" = 'linux' ] && alias ls='ls --color=auto' alias ll='ls -lihF' alias la='ls -A' alias l='ll -A' hash eza 2>/dev/null && alias ls='eza' -alias sudo='sudo ' -alias grep='grep -n --color=auto' -alias j='jobs' + +# +# Aliases for common commands +# + alias df='df -h' +alias grep='grep -n --color=auto' alias ip='ip --color' alias ipb='ip --color --brief' +alias j='jobs' alias mount_ro='mount -o ro,noexec,noatime,nodev,nosuid,noiversion' -hash tree 2>/dev/null && alias t='tree' -hash duf 2>/dev/null && alias du='duf' -hash htop 2>/dev/null && alias top='htop' +alias sudo='sudo ' + + +# +# Aliases for installed programs +# + hash clang-format 2>/dev/null && alias clang-format='clang-format -style="{BasedOnStyle: llvm, IndentWidth: 4, AllowShortFunctionsOnASingleLine: None, KeepEmptyLinesAtTheStartOfBlocks: false}"' -hash sqlmap 2>/dev/null && alias sqlmap='sqlmap --user-agent="Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"' -hash sqlmap 2>/dev/null && alias sqlmap-tor='sqlmap --tor --tor-type=SOCKS5' +hash duf 2>/dev/null && alias du='duf' +hash helix 2>/dev/null && alias hx='helix' +hash htop 2>/dev/null && alias top='htop' hash kitty 2>/dev/null && alias kitty_ssh='kitty +kitten ssh' hash nvim 2>/dev/null && alias vim='nvim' -hash helix 2>/dev/null && alias hx='helix' +hash sqlmap 2>/dev/null && alias sqlmap='sqlmap --user-agent="Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"' +hash sqlmap 2>/dev/null && alias sqlmap-tor='sqlmap --tor --tor-type=SOCKS5' +hash tree 2>/dev/null && alias t='tree' -if hash yay 2>/dev/null; then - reinstall_pattern() { - PATTERN="$1" - yay -S $(pacman -Qm | /bin/grep "$PATTERN" | cut -d ' ' -f1) - } -fi + +# +# More complex aliases +# # https://github.com/OpenXRay/xray-16 if hash xr_3da 2>/dev/null; then @@ -35,6 +48,13 @@ if hash xr_3da 2>/dev/null; then alias stalker_call_of_pripyat='xr_3da' fi +if hash yay 2>/dev/null; then + reinstall_pattern() { + PATTERN="$1" + yay -S $(pacman -Qm | /bin/grep "$PATTERN" | cut -d ' ' -f1) + } +fi + if hash yt-dlp 2>/dev/null; then alias audio-dl='yt-dlp --extract-audio --audio-quality 0 --audio-format "vorbis"' alias youtube-dl='yt-dlp' From 25af4813b81a23ac8e6e422b8ea94e2428de1e7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 15 Dec 2024 20:47:20 +0100 Subject: [PATCH 09/10] Remove youtube-dl --- .config/rodolphe/.aliases | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.config/rodolphe/.aliases b/.config/rodolphe/.aliases index a0cfcb2..24d5666 100644 --- a/.config/rodolphe/.aliases +++ b/.config/rodolphe/.aliases @@ -35,6 +35,7 @@ hash nvim 2>/dev/null && alias vim='nvim' hash sqlmap 2>/dev/null && alias sqlmap='sqlmap --user-agent="Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"' hash sqlmap 2>/dev/null && alias sqlmap-tor='sqlmap --tor --tor-type=SOCKS5' hash tree 2>/dev/null && alias t='tree' +hash yt-dlp 2>/dev/null && alias audio-dl='yt-dlp --extract-audio --audio-quality 0 --audio-format "vorbis"' # @@ -54,10 +55,3 @@ if hash yay 2>/dev/null; then yay -S $(pacman -Qm | /bin/grep "$PATTERN" | cut -d ' ' -f1) } fi - -if hash yt-dlp 2>/dev/null; then - alias audio-dl='yt-dlp --extract-audio --audio-quality 0 --audio-format "vorbis"' - alias youtube-dl='yt-dlp' -elif hash youtube-dl 2>/dev/null; then - alias audio-dl='youtube-dl -x --audio-quality 0 --audio-format "vorbis"' -fi From a46def3bc2e7c96725c646a479abd57e0b8d6329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 15 Dec 2024 20:50:57 +0100 Subject: [PATCH 10/10] Reorganize aliases --- .config/rodolphe/.aliases | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.config/rodolphe/.aliases b/.config/rodolphe/.aliases index 24d5666..f3fbe1c 100644 --- a/.config/rodolphe/.aliases +++ b/.config/rodolphe/.aliases @@ -32,15 +32,13 @@ hash helix 2>/dev/null && alias hx='helix' hash htop 2>/dev/null && alias top='htop' hash kitty 2>/dev/null && alias kitty_ssh='kitty +kitten ssh' hash nvim 2>/dev/null && alias vim='nvim' -hash sqlmap 2>/dev/null && alias sqlmap='sqlmap --user-agent="Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"' -hash sqlmap 2>/dev/null && alias sqlmap-tor='sqlmap --tor --tor-type=SOCKS5' hash tree 2>/dev/null && alias t='tree' hash yt-dlp 2>/dev/null && alias audio-dl='yt-dlp --extract-audio --audio-quality 0 --audio-format "vorbis"' - -# -# More complex aliases -# +if hash sqlmap 2>/dev/null; then + alias sqlmap='sqlmap --user-agent="Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"' + alias sqlmap-tor='sqlmap --tor --tor-type=SOCKS5' +fi # https://github.com/OpenXRay/xray-16 if hash xr_3da 2>/dev/null; then