Today I setup a new machine on Digital Ocean to use with TestProject.io, Here are my installation notes. Terminal bash envsubst <.github/ci/docker-compose.yml > docker-compose.yml yaml Terminal bash
This morning I logged into my machine and was nearly out of space 64GB miniconda3! 5GB conda cache 4GM pip cache 34GB docker Find it These are the commands that I often use to reclaim space. Its so easy to fill up small vm’s in the cloud, or in my case today let your dev machine go way too long without a good cleanup. Show Remaining Space on Drives This shows us where to start and gives a baseline of how much space we have reclaimed. Terminal bash show largest files in current directory Next keep drilling into directories that are big and running this command to see whats big inside of it. When you find somethign that you are willing to part with it and check to see if you have enough reclaimed yet. Terminal bash Honestly I rarely bother unless the directory is in the GB’s of space. A super simple filter for that is to just grep for G. Terminal bash conda How Many? As a first baseline lets see how many enviroments we are starting with. I started with 71. Yeah I have had this machine fo…
I have been using oh-my-zsh successfully for about 2 years now. But lately my startup time has been really bothersome. It has grown to the point where it was taking about 5.5s to startup a shell! This is ok if I am going to spend some time in here for awhile and do some work that benefits from all of the autocompletions, plugins, and shortcuts that oh-my-zsh brings. But to only jump in to run a handful of commands is infuriating. 📑 My Setup I believe the real issue is io speed on wsl. I have some remote servers with similar configs that are 10x faster or more, loading in 100s of milliseconds rather than seconds. Sourcing all of the individual plugin files are just too much for it. 💨 How Fast can it be Quick side note: your zsh config is controled by your ~/.zshrc file. This file can source other files, load plugins, or run literally anything. Time the initial time Terminal bash Move your ~/.zshrc config file. Terminal bash Time the fastest startup possible with nothing in your ~/.zshrc…
Bash is super powerful. File System Full Show Remaining Space on Drives Terminal bash show largest files in current directory Terminal bash Move files then symlink them Terminal bash Fuzzy One Liners Terminal bash edit in vim Terminal bash cat a file Terminal bash bash execute Terminal bash git add Terminal bash git reset Terminal bash Kill a process Terminal bash Finding things Files fd-find is amazing for finding files, it even respects your file 😲. Install with. Terminal bash Terminal bash Terminal bash ++Vanilla Bonus Content ** show matching text ** Terminal bash Terminal bash ++Vanilla Bonus ** show file names only ** Terminal bash Terminal bash ++Vanilla Bonus Recursively Replace text Terminal bash ++Vanilla Bonus Terminal bash Extending or There are so many options inside of,, and that you could many an enormous amount of these if you really wanted to, but I like to keep it simple. These cover 90% of my usage. If I wanted to change something in the second half I would just past…
Calendar data could not load. Try again.