Parellel processing in Bash

The command line has been the primary interface for Unixes for over 40 years now. It’s design is reminiscent of it’s terminal roots, and it has remained much the same in form and function for decades now.

The terminal, or shell (as we will call it), is batch oriented, i.e: it runs one command at time. But that’s just one part of it. The shell also supports parellel processing, i.e the ability to run multiple commands, asynchronously from a single script. Parellel processing is an old problem and is supported in various ways. In this article I will explore some solutions in BASH , the ubiquitous shell on Unixes, and talk about the pros and cons of each.
Continue reading

Tech Recipe : Install HAProxy on Ubuntu

HAProxy is a reliable and high performance load balancer for TCP and HTTP(S) based applications.

There are several detailed tutorials around the web on how to install HAProxy. As is usual of my “Tech Recipe” posts, I’ve boiled those instructions down to the quickest way to have HAProxy installed and running on your Ubuntu machine. You will have a running and configured version of HAProxy 1.5 running in under 2 minutes, and ready to go into production. Continue reading

Git Branches

Ever wondered if there was a quick guide to working with branches. Sure there’s Git SCM and Git Ref, but it’s not always obvious what that one line of code is that you need, right now!. So here’s my attempt to address the issue. For those familiar with git, but don’t quite know what command to run.

This is a list of git commands for common situations when working with branches. It addresses branch creation, discovery and syncronization. Continue reading