aapje is baas tech

Recent Articles:

Hyper fast wordpress

How to speedup wordpress without without changing your website.

Not one of my regular deeply technical posts but not any less valueable.

You're probably here because you have a Wordpress based website and are not too impressed with the performance. There are a few approaches to make your content Hyper …

Get ec2 arn for local ec2 machine with python

A super minimal urllib based arn constructor based on local metadata

import urllib.request

# local ec2 arn:
f = urllib.request.urlopen('')
az = f.read().decode('utf-8')
f = urllib.request.urlopen('')
instance = f.read …

aws cli search for latest ami

This simple oneliner gets you the latest ami in a given region for a specific search term.

# get the latest ecs-optimized amazon ami in eu-west-1
aws ec2 describe-images --region eu-west-1 --owners amazon --filters "Name=name,Values=*amazon-ecs-optimized" --query 'sort_by(Images, &CreationDate)[-1].ImageId'

So lets break it down to give …

Install vim without X11 on FreeBSD

I can work with vi, but after using vim for years I just can't work without it. The only problem is, if you install vim with pkg install vim it installs X11 and related crap.

This should be done as root.

First update portsnap:

# get it
portsnap fetch update

# extract …

Setup Oh My Zsh on FreeBSD

"Oh My Zsh is an open source, community-driven framework for managing your zsh configuration.

Sounds boring. Let's try again.

Oh My Zsh will not make you a 10x developer...but you might feel like one."

First of we need some prerequisites: - pkg - zsh - curl - git

Let's get this install going …