linux
docker disk usage
Find large directories
du -ah / | sort -h -r | head -n 20
Find containers using a given volume
docker ps -a --filter volume=<volume>
Remove container and its associated volume
docker rm -v container
See total volume, image, container space
docker system df
See space used per volume
docker system df -v
Remove dangling volumes from disk
docker volume prune
wsl uses all the ram
increase number of open files
Running into EMFILE errors because too many files open? (looking at you npm i):
mylimit=8000
sudo prlimit --nofile=$mylimit --pid $$; ulimit -n $mylimit
su $USER
or
sudo prlimit -p "$$" --nofile=10000:10000
exec $SHELL
ulimit -n 10000 posts
links
Linus Tovalds speaks to 3d printing and increased linux commits & security disclosures due to AI.
AI is a great tool, but it’s a tool. When I see people saying 99% of our code is written by AI … 100% of their code is written by compilers, but they never say that. AI is … not changing the fundamentals. …people will use AI to generate the code that the compilers use to generate the code that the assemblers then use to generate the machine code. This is revolutionary in the same sense that we’ve seen revolutions before. AI is great, but AI is not changing programming.
Ncurses Disk Usage or ncdu is a handy little utility for analysing disk space in your linux distro.
apt-get install ncdu
ncdu / --exclude mnt A guide and tools for running macOS on QEMU/KVM. Supports running modern macOS versions including Monterey, Ventura and Sonoma using OpenCore.