Add some scripts

This commit is contained in:
Marcel Schwarz 2023-07-23 19:28:30 +02:00
parent 4666fb723e
commit d293f4dffa
5 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# this installs tools which I would say are alrounders on all systems
apt install bleachbit nano xrdp htop bash-completion dialog powertop tree tmux

5
scripts/apt-update.sh Normal file
View File

@ -0,0 +1,5 @@
apt update
apt upgrade
apt dist-upgrade
apt autoremove
apt autoclean

View File

@ -0,0 +1 @@
history | awk '{$1=""}1' | awk '{$1=$1}1' | sort | uniq -c | sort -bgr | more

View File

@ -0,0 +1 @@
docker images --format "{{.Repository}}:{{.Tag}}" | xargs -L1 docker pull

6
scripts/wsl-free-mem.sh Normal file
View File

@ -0,0 +1,6 @@
# WSL2 Linux Module to free up caches and compact memory
# See Microsoft Blog (https://devblogs.microsoft.com/commandline/memory-reclaim-in-the-windows-subsystem-for-linux-2/)
# needs to run as root (sudo doesn't work)
echo 1 > /proc/sys/vm/drop_caches
echo 1 > /proc/sys/vm/compact_memory