Monitoring OpenShift cron jobs

Openshift (and Kubernetes) allow you to run jobs on schedule, but these jobs can fail from time to time. You can monitor them from bash!
Read more →

Monitor CyberPower UPS wattage

Monitor the power consumption of your CyberPower UPS and display the live output in your Linux desktop’s status bar.
Read more →

Compare commits between two git branches

I found myself stuck in a particularly nasty situation a few weeks ago where I had two git branches with some commits that were mixed up. Some commits destined for a branch called development ended up in master. To make matters worse, development was rebased on top of master and the history was obviously mangled. My goal was to find out which commits existed in development but didn’t exist anywhere in master.
Read more →

Parse kernel.org changelogs with wget and grep

I try to keep up with the latest kernel update from kernel.org, but parsing through the output can be a pain if there are a lot of changes taking place. Here’s a handy one-liner to make it easier to read: wget –quiet -O - http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.31.8 | grep -A 4 ^commit | grep -B 1 "^–" | grep -v "^–" It should give you some output like this: Linux 2.6.31.8 ext4: Fix potential fiemap deadlock (mmap_sem vs.
Read more →