Saturday, September 18th, 2010

One liner of the week

How to find new or re-activated accounts in NIS in the past week: d=`date +%Y%m%d -d ’7 days ago’`; rcsdiff -r`rlog -d$d /var/yp/source/passwd |grep “^revision”|awk ‘{print $2}’` /var/yp/source/passwd|sed ‘s/^[<> ]//; /—/d; /^[0-9]/d’|perl -F: -walne ‘$h{$F[2]}.=”$F[0] “; END {$h{$_} =~ / ./ && print “$_: $h{$_}” for keys %h}’ | awk ‘{ if ( $NF !~ [...]

No Comments » - Posted in Geek by

Friday, June 6th, 2008

What colour is black?

Took this photo a while ago and thought I’d share it with people on the off-chance any of you are as sad as me.

This is what black looks like on our super cheap DVD player over our super expensive
component cable compared to how it looks over a normal video lead.

1 Comment » - Posted in Geek,Misc by