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.

Author's profile picture

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 can resize the root volume with a little trick I learned.

Author's profile picture

Grant an IAM user access to a specific S3 bucket and folder

In Amazon Web Services there’s a product called IAM (Identity and Access Management) which allows you to create users and groups and attach policies to both. In this how to we look at an IAM policy which allows a specific user to only have access to a specific S3 bucket and folder.

Author's profile picture

Ghost on Debian with Nginx as a reverse proxy

I finally came around to trying out Ghost and I’m loving it. So much that I switched my old Jekyll website over to Ghost. I used a small Ruby script to convert my Markdown files to a JSON file that Ghost can use to import my posts. Here’s a quick tutorial how to install NodeJS and Ghost and use Nginx as a reverse proxy.

Author's profile picture

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, in my opinion, the best gaming platform is the one where most of your friends are. I’ve had the PS4 for a few days now and I want to share some thoughts after my initial wave of enthousiasm.

Author's profile picture

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”.

Author's profile picture

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 want to enable all users to add, delete and resync their MFA devices.

Author's profile picture

Using Docker to run WordPress behind an Nginx reverse proxy

Docker really seems to be taking off as a viable solution for development workflows. If you’re working with WordPress there’s already a lot of good tools besides Docker to bootstrap a new WordPress website. But here’s how to do it with Docker.

Author's profile picture

Getting A+ on SSLLabs with Nginx and StartSSL

Qualys offers an SSL Test where you can check your SSL setup. They make recommendations on what to tweak to get the highest score possible. I want to share how I achieved A+ using Nginx and StartSSL.

Author's profile picture

Quickly switch between AWS accounts using aws-cli

The AWS CLI tools are really great for quick tasks on your AWS infrastructure, like looking which instances are currently running. You can also using aws-cli for automation of course. One thing I found annoying while working with multiple accounts was having to add –profile to my command each time I wanted to do something with aws-cli.

Author's profile picture