Search and Replace in Multiple Files with Spacemacs

What is Spacemacs I’ve been a pure Vim user for many years before I stumbled on Spacemacs. So what is it? Spacemacs is a community driven distribution of Emacs. The tagline is The best editor is neither Emacs nor Vim, it's Emacs and Vim!. It’s pretty much Emacs with a well structured configuration system (via something called “Layers”). You can choose to use Vim like keybindings (or what Emacs people call evil)....

August 7, 2019 · 1 min · 211 words · Rameez Khan

Debug on Kubernetes with a Swiss-Army Knife of Tools

Premise I often find myself needing to debug some network issue on Kubernetes. This is usually something like doing a traceroute to an external or internal address, checking egress IP addresses, or just needing a shell on the Kubernetes cluster. The Past What I used to do is find any running pod on the cluster and shell into it, hoping it’s running some sort of base Alpine/Debian image. Then I’d use whatever the built-in package manager is (apt, yum, etc) to install my the tools (nmap, traceroute, ping, etc)....

January 31, 2019 · 1 min · 210 words · Rameez Khan

Proxy SSH traffic via Bastion Hosts with Proxyjump

So what is a bastion host anyways? It has become the norm these days to have what is called a bastion host (or perhaps more commonly known as a Jumpbox). This machine generally lives in a public subnet and serves as an SSH gateway into the private subnet/network. See below image. Proxy traffic via the bastion I’ve always used the ProxyCommand before to achieve this. A quick example would be adding the following to your ~/....

January 25, 2019 · 2 min · 292 words · Rameez Khan