diff --git a/bin/clean-gpu-caches b/bin/clean-gpu-caches new file mode 100755 index 0000000..943b3c7 --- /dev/null +++ b/bin/clean-gpu-caches @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +if [[ ${1} == "--dry" ]]; then + ( + set -ex + find ~/ \( -name GPUCache -o -name ShaderCache -o -name GrShaderCache \) -type d + ) +else + ( + set -ex + find ~/ \( -name GPUCache -o -name ShaderCache -o -name GrShaderCache \) -type d -exec rm -rfv {} + + ) +fi + +# rm -rf ~/.config/BraveSoftware/Brave-Browser/GrShaderCache +# rm -rf ~/.config/BraveSoftware/Brave-Browser/ShaderCache +# rm -rf ~/.config/BraveSoftware/Brave-Browser/Default/GPUCache +# rm -rf ~/.config/google-chrome/GrShaderCache +# rm -rf ~/.config/google-chrome/ShaderCache +# rm -rf ~/.config/google-chrome/Default/GPUCache diff --git a/bin/dns-clean-cache b/bin/dns-clean-cache new file mode 100755 index 0000000..73c2f9c --- /dev/null +++ b/bin/dns-clean-cache @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +echo "Before clean" +echo "" +sudo systemd-resolve --statistics +echo "" +echo "Cleaning..." +echo "" +sudo systemd-resolve --flush-caches +echo "After clean" +echo "" +sudo systemd-resolve --statistics diff --git a/bin/mount-nfs b/bin/mount-nfs new file mode 100755 index 0000000..d8ceb19 --- /dev/null +++ b/bin/mount-nfs @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +#https://linux.die.net/man/8/mount +#https://linux.die.net/man/5/nfs +#https://www.freedesktop.org/software/systemd/man/systemd.mount.html + +sudo mount \ + --options 'nfsvers=4,rw,nosuid,nodev,relatime,nofail,hard' \ + --source 192.168.1.231:/disks/Media \ + --target "/goose/Media" diff --git a/bin/snap-clean-disabled b/bin/snap-clean-disabled new file mode 100755 index 0000000..f854486 --- /dev/null +++ b/bin/snap-clean-disabled @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -eu + +LANG=C snap list --all | awk '/disabled/{print $1, $3}' | + while read -r snapname revision; do + echo "Removing ${snapname} ${revision}" + sudo snap remove "${snapname}" --revision="${revision}" + done