Batch fitting pictures in ImageMagick

I recently bought a digital frame for some of my more elderly relatives.
The frame's firmware was quite retarded, and I had 2 issues with it:

1. Pictures were always displayed in order

This might be a "not a bug but a feature" type of situation, but still.
I ...

more ...

Managing chef users with Chef

I needed to create seperate Chef accounts for some utility program running in my Chef server.
I was finally able to deprecate it today, but I saved those snippets because they're neat. These snippets use chef-server-ctl, which is a utility software included in Chef server's installation

The bits ...

more ...

Locking Down Jenkins' Authentication

Update 19.02.15

After posting my script in the Jenkins mailing list, I was told about a simpler way for implmenting my authorization strategy. I'm leaving this post because the things I learnt from developing the plugin are still valuable and may help someone someday.

The REAL solution ...

more ...

Resizing AWS root EBS in CentOS HVM

Update 04.07.15

This method doesn't work anymore because of some weird AWS restriction, which says you can't connect the root device of a marketplace AMI (like the CentOS one) to another VM, lest you discover its secrets.
I developed a better method which involves either rebooting ...

more ...

Booting with UUID without initramfs

The Story

I recently wiped my CubieTruck (a single board computer, like RaspberryPi), and tried installing the root filesystem on a hard drive instead of the built-in NAND, due to the NAND's tendency to get corrupted.
I used Igor Peńćovnik's Image, which is really convenient, as I like ...

more ...

Getting Git Submodule Detailed Status

The Story

I manage every one of my Chef cookbooks as a single git repository, complying with the BerkShelf paradigm. I keep them all as submodules in a "supermodule", to allow my teammates to easily clone them all. I can use git status from the supermodule to get submodule information ...

more ...

CSV Tricks

The Story

I've been requested to recreate some spreadsheet for our execs. Being annoying as usual, I made it a point to only use scripting to build the tables.
Most of the reconstruction is interesting in an unrelated way, but I wanted to post about some little gimmicks that ...

more ...

Troubleshooting StatsD

About StatsD

StatsD is a tool developed by Etsy and Flickr (complicated story).
Its main use is providing a middleman for Graphite, which is a real-time graphing tool, mainly used for performance metrics.
Thanks to StatsD, I can use TCP sockets between servers (guaranteeing packet delivery), while processes generating the ...

more ...

SSH vs OpenVPN for Tunneling

Update 28.01.16

I found some sites referring to this post. Below are the common complaints I saw, and my replies:

  • I'm criminally bad with setting up OpenVPN, meaning the testing is completely off
    I'm not an expert in networking, but I have a working knowledge of ...

more ...

AWS's Block Device Mapping in CentOS

The Story

I'm using Amazon's EC2 for some of my VMs, which run CentOS. When viewing Block Device Mappings (mapping between the virtual storage - ebs, ephemerals etc. and the block devices inside the VM) in CentOS 6.5, I ran into an annoying issue. When inspecting my instance ...

more ...