Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
moukoublen committed Oct 29, 2024
1 parent 5d5aecd commit ba1ae20
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
20 changes: 20 additions & 0 deletions bin/clean-gpu-caches
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions bin/dns-clean-cache
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions bin/mount-nfs
Original file line number Diff line number Diff line change
@@ -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"
9 changes: 9 additions & 0 deletions bin/snap-clean-disabled
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ba1ae20

Please sign in to comment.