August 2020
Things I just realized I’ve mostly forgotten about: Linux Networking
Trying to get two VPNs working together on the same Ubuntu system was a (relatively short) journey. I still know all the basics and whatnot, but I used to have all of the ifconfig
commands memorized. Adding a default gateway, for example, used to be a common task for me back in the “old-school” days of being a Linux sysadmin. I had that command memorized. I knew how to read a route
table! The move to Docker containers and AWS has rotted my brain. It’s also a testament to Docker that its networking Just Works in most cases. It’s also scary because running Docker on a system is dangerous since it, by default, modifies iptables to expose ports to the world (0.0.0.0). I wonder what other scary Docker things I’m missing as a result of forgetting how Linux Networking works.
Vim
vim Things to Remember
This is for vim
stuff that I frequently have to Google for.
Copy output of shell command to file
This is done with:
:r !ls -1
Yanking and deleting properly
When trying to delete something and then paste, it’s best to use a dedicated register for yank instead:
"ay
and then paste with the register:
"ap
There’s also a separate register specifically for yanking:
"0p
December 2019
Python things
Python is my main programming language.
Async/await
- How to use these
- How do they work under the hood
- How to mess this up badly
fastapi
- How to use this
- How it works under the hood
- How to mess up longin/security
- How to deploy this to Google Run with Cloud SQL, AWS EC2 with Aurora PSQL, IBM?
- How much more complicated does adding a proper SQL make this deployment, vs using SQLite
- Gitlab automatic deployment and unit testing with every commit
Distributed Systems
Reading this book, notes go here.