Add some scripts
This commit is contained in:
parent
4666fb723e
commit
d293f4dffa
2
scripts/apt-install-basics.sh
Normal file
2
scripts/apt-install-basics.sh
Normal 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
5
scripts/apt-update.sh
Normal file
@ -0,0 +1,5 @@
|
||||
apt update
|
||||
apt upgrade
|
||||
apt dist-upgrade
|
||||
apt autoremove
|
||||
apt autoclean
|
1
scripts/top-used-commands.sh
Normal file
1
scripts/top-used-commands.sh
Normal file
@ -0,0 +1 @@
|
||||
history | awk '{$1=""}1' | awk '{$1=$1}1' | sort | uniq -c | sort -bgr | more
|
1
scripts/update-all-docker-images.sh
Normal file
1
scripts/update-all-docker-images.sh
Normal file
@ -0,0 +1 @@
|
||||
docker images --format "{{.Repository}}:{{.Tag}}" | xargs -L1 docker pull
|
6
scripts/wsl-free-mem.sh
Normal file
6
scripts/wsl-free-mem.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user