Fork me on GitHub


Client-side subversion commit message hooks

While I know this isn’t best practice, since we use LDAP-based auth for our Linux boxes (including a sudoers file based on LDAP group membership), we usually do work on some boxes as root (sudo su -). This includes our puppetmaster, where configs are kept in subversion and edited ...

more ...


MySQL General Query Log and Awk Trimming Columns

So today I started to implement a number of complex regex-based rules and templates to get rsyslog to parse ISC DHCPd logs in realtime. Unfortunately one of my templates must have been wrong, because I started seeing some errors about a field that cannot be blank in /var/log/messages ...

more ...

Highlighting matches with grep and less

Yes, I haven’t posted much lately. Just a quick little tip, since it came in handy today.

Grep accepts a --color argument which highlights matches in color (assuming your terminal supports it). Passing grep --color=always and piping the output into less -R will allow you to scroll through ...

more ...


Handling mailto links on another computer

At work, I use synergy to control two computers with the same mouse and keyboard. My main desktop (skynet) has two monitors - generally one for Firefox and one for my terminals - and my secondary machine (mithrandir), a third monitor on my desk, handles email and IM. The only real problem ...

more ...