Pinned posts

Off Hours Documentation

Planning to use this blog as a way to share documentation of cool stuff I do outside of work.

For the most part, I envision this as a cleaned up version of my personal Evernote documentation.

Continue reading →

Latest posts

Updating Ansible On Babun

On most platforms with pip, updating Ansible is as simple as:

$ pip install -U ansible

However, on babun, I received the following error:

/usr/include/sys/time.h:104:34: error: unknown type name ‘u_int’
    error: command 'gcc' failed with exit status 1

          Rolling back uninstall of pycrypto
          Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-eY8zz7/pycrypto/';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-iUMqxd-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-eY8zz7/pycrypto/

Continue reading →

Using AWS CLI to choose RHEL and Ubuntu AMIs

For managing my AWS resources, I prefer to stick to the AWS CLI. However, until recently, I have relied on the AWS web console to find AMIs.

Today, I finally decided to dive into JMESPath to come up with my own filters for describe-images. Since I typically stick with RHEL and Ubuntu distros, I created an alias for each.

Continue reading →

Using Ansible To Bootstrap Ubuntu

After creating a new VPS Ubuntu instance, one of the first things I do is lock down root access and create an administrator account.

I was using Fabric to push out these modifications. Recently, however, I decided to switch to Ansible instead.

Continue reading →

Installing Ansible On Babun

Thanks to the pact package manager, installing ansible on babun was significantly easier than on cygwin. The whole process consisted of only three simple steps.

Continue reading →

Public Samba Share On An Asuswrt Merlin Router

I decided to switch my Asus RT-AC68U’s firmware from DD-WRT to Asuswrt-Merlin. Unfortunately, Asuswrt-Merlin’s web GUI doesn’t allow the configuration of non-authenticated (i.e., guests or public) access to a Samba share.

Since I have some experience with Samba, I decided to write a quick bash script to modify the shares configuration.

Continue reading →

Fixing Non Responsive Ruby In Babun

To install github-pages in babun, I first needed to install ruby. This proved more difficult that I initially thought.

My first attempt of pact install ruby lead to a non-responsive ruby and gem:

Continue reading →