Linux engineer and proponent of simplicity with a focus on highly scalable cloud infrastructure.

How to solve Apt-get waiting for headers

Sometimes you play around with some third-party repositories on your Debian-based Linux box, only to find out apt-get hangs while waiting for headers. Really annoying. You can regenerate the apt-get list cache by executing the following steps. sudo apt-get clean cd /var/lib/apt sudo mv lists lists.old sudo…

Continue reading →

Resize the root volume of an Azure VM

Every Azure virtual machine comes with a certain amount of storage for it's root volume, plus a few hundred GigaBytes of instance storage which will get deleted if you reboot the VM. For storing data you can either create a new disk and attach it to your VM, or you…

Continue reading →

PlayStation 4 enthousiasm

Finally, after a lot of going back and forward, and a few rounds of interrogating my friend Sean, I bought a black PlayStation 4. I was seriously thinking of buying an Xbox One because of the great IP they have; Gears of War, Halo, Quantum Break and Sunset Overdrive. But,…

Continue reading →

Mute

It's a regular Tuesday morning in January, 6.47 AM. It's cold and dark outside. I should be in the car already but instead I'm slowly waking up to the sound of someone starting a car to commute to work. "Fuck", I silently shout to myself, "that damn Android phone"…

Continue reading →

Require MFA for AWS API and Console access

Sometimes you want to require your users to enable MFA (multi-factor authentication) before being able to do anything with the Amazon Web Services (AWS) account you gave them access to. There's a small conditional you have to add to your IAM policy in order to do so. But you'll also…

Continue reading →

A few useful things from the wiki

Some useful Bash aliasses alias sud="sudo -i" alias l="ls -lah" alias ..="cd .." alias ...="cd ../.." alias ~="cd ~" alias -- -="cd -" alias ip="dig +short myip.opendns.com @resolver1.opendns.com" Generate passwords using a Bash function genpasswd() { local l=$1 [ "$l" == "" ] && l=20 tr -dc…

Continue reading →