Don’t bother with setting up NIS. Go for LDAP.
Monthly Archives: February 2012
No PTR Record
Here’s one of nslookup’s most annoying problems: something went wrong, and nslookup exited on startup:
% nslookup
Continue reading No PTR Record
*** Can't find server name for address 192.249.249.3: Non-existent host/domain
*** Default servers are not available
Theory of Constraints
The theory of constraints (TOC) adopts the common idiom “A chain is no stronger than its weakest link” as a new management paradigm. This means that processes, organizations, etc., are vulnerable because the weakest person or part can always damage or break them or at least adversely affect the outcome.
Key assumption
The underlying premise of theory of constraints is that organizations can be measured and controlled by variations on three measures: throughput, operational expense, and inventory. Throughput is the rate at which the system generates money through sales. Inventory is all the money that the system has invested in purchasing things which it intends to sell. Operational expense is all the money the system spends in order to turn inventory into throughput. Continue reading Theory of Constraints
IRC command reference
/server holmes.freenode.net (in London)
/msg NickServ register [password] [youremail@example.com]
/msg NickServ identify [nickname] [password]
/msg NickServ info nick
/msg ChanServ access #[channel] list
/msg NickServ set password [mynewpassword]
/join #[channel_name]
/msg ChanServ TOPIC #Democracy How are you today?
SET #channel ENTRYMSG
SET #channel EMAIL
SET #channel URL
/msg ChanServ INFO #foo
/msg ChanServ STATUS
/msg ChanServ ACCESS #foo LIST
/msg ChanServ ACCESS #foo ADD bar OP
/msg ChanServ ACCESS #foo DEL bar
/msg ChanServ QUIET #chat AfterDeath <-username /msg ChanServ QUIET #chat *!*@*.ipt.aol.com <- hostmask
Coloured Bash for hosts
# Set the command prompt format
if [ "$PS1" ]; then
if [ "$BASH" ]; then
if [[ "$(hostname)" == 'XSG-DATA01' ||
"$(hostname)" == 'XSG-DATA02' ||
"$(hostname)" == 'XSG-APPL04' ]]; then
PS1='\[\033[1;36m\][$(date +%H:%M)]\[\033[0m\]\u@\[\033[0;30;43m\]\h\[\033[0m\]:\w$ '
elif [[ "$(hostname)" == 'XSG-DATA03' || Continue reading Coloured Bash for hosts
ffmpeg: extract audio track from video
ffmpeg -i video.flv -ab 160k -ac 2 -ar 44100 -vn audio.mp3