Monday 28 May 2012

Ruby : Pretty print an object

require 'ap' obj = someObject ap obj

Sunday 27 May 2012

Linux : Unpack an rpm

rpm2cpio chef-full-0.10.8-3.x86_64.rpm | cpio -idv

Tuesday 22 May 2012

Linux : Force Ntp update

/etc/init.d/ntpd stop ntpdate -u pool.ntp.org /etc/init.d/ntpd start

Monday 21 May 2012

Excel - Replace all commas with a newline character

Replace all commas with a newline character - what to put in the replace field? Hold down , and type 0010 using the numbers on the Num keypad, *not* the numbers under the function keys.