From 3810da00f39b7b9edf330596d80f024b4e0d621c Mon Sep 17 00:00:00 2001 From: "Azalea (on HyDEV-Daisy)" Date: Sat, 1 Oct 2022 14:13:45 -0400 Subject: [PATCH 1/4] [U] Dynamic core count with compress-zst --- scripts/zshrc.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/zshrc.sh b/scripts/zshrc.sh index 269291f..04c9aec 100755 --- a/scripts/zshrc.sh +++ b/scripts/zshrc.sh @@ -68,12 +68,17 @@ alias mount-external='sudo mount -t cifs //192.168.2.1/external /smb/external -o alias ds-clean="sudo find ./ -name \".DS_Store\" -depth -exec rm {} \;" alias clean-empty-dir="find . -type d -empty -delete -print" -alias compress-zst="tar -I 'zstd -T36 -19' --checkpoint=.1024 --totals -c -f" alias restart-kwin="DISPLAY=:0 setsid kwin_x11 --replace" alias catt="echo 🐱" alias old-update-ssh-keys="curl -L https://github.com/Hykilpikonna.keys > ~/.ssh/authorized_keys" +compress-zst() { + cores=$(grep -c ^processor /proc/cpuinfo) + echo "Starting ZSTD compression with $cores cores" + tar -I 'zstd -T36 -15' --checkpoint=.1024 --totals -c -f "$@" +} + # Unix permissions reset (Dangerous! This will make executable files no longer executable) reset-permissions-dangerous() { sudo find . -type d -exec chmod 755 {} \; From 839f372f4a97408541722998c780447bc898ed7b Mon Sep 17 00:00:00 2001 From: "Azalea (on HyDEV-Daisy)" Date: Sat, 1 Oct 2022 18:28:56 -0400 Subject: [PATCH 2/4] [U] tar progress --- scripts/zshrc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/zshrc.sh b/scripts/zshrc.sh index 04c9aec..b31a226 100755 --- a/scripts/zshrc.sh +++ b/scripts/zshrc.sh @@ -76,8 +76,9 @@ alias old-update-ssh-keys="curl -L https://github.com/Hykilpikonna.keys > ~/.ssh compress-zst() { cores=$(grep -c ^processor /proc/cpuinfo) echo "Starting ZSTD compression with $cores cores" - tar -I 'zstd -T36 -15' --checkpoint=.1024 --totals -c -f "$@" + tar -I 'zstd -T36 -15' --checkpoint=.1024 --totals --totals=SIGUSR1 -c -f "$@" } +alias tar-kill-progress="watch -n 60 killall tar -SIGUSR1" # Unix permissions reset (Dangerous! This will make executable files no longer executable) reset-permissions-dangerous() { From 951b8dd30458fbd555693b6491d0e7b76996cebc Mon Sep 17 00:00:00 2001 From: "Azalea (on HyDEV-Daisy)" Date: Sat, 1 Oct 2022 19:19:56 -0400 Subject: [PATCH 3/4] [U] Update clean-cache --- scripts/includes/archlinux.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/includes/archlinux.sh b/scripts/includes/archlinux.sh index b7bbbe3..fdf992f 100644 --- a/scripts/includes/archlinux.sh +++ b/scripts/includes/archlinux.sh @@ -46,5 +46,8 @@ if [ -f "/etc/arch-release" ]; then clean-cache() { yay -Sc --noconfirm sudo pacman -Sc --noconfirm + yarn cache clean + conda clean -a + pip cache remove '*' } fi \ No newline at end of file From ab82a5a16957557f1e9eb24e9aefe53acecfc0df Mon Sep 17 00:00:00 2001 From: "Azalea (on HyDEV-Daisy)" Date: Sun, 2 Oct 2022 09:57:56 -0400 Subject: [PATCH 4/4] [+] File-system aliases --- scripts/zshrc.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/zshrc.sh b/scripts/zshrc.sh index b31a226..bd63f07 100755 --- a/scripts/zshrc.sh +++ b/scripts/zshrc.sh @@ -70,6 +70,10 @@ alias ds-clean="sudo find ./ -name \".DS_Store\" -depth -exec rm {} \;" alias clean-empty-dir="find . -type d -empty -delete -print" alias restart-kwin="DISPLAY=:0 setsid kwin_x11 --replace" +alias mkfs.fat32="sudo mkfs.fat -F 32" +alias btrfs-fs-progress="sudo watch -d sudo btrfs fi us" +alias btrfs-balance-progress="sudo watch -d btrfs balance status" + alias catt="echo 🐱" alias old-update-ssh-keys="curl -L https://github.com/Hykilpikonna.keys > ~/.ssh/authorized_keys"