iTunes playlist -> m3u

If you have iTunes mp3 playlist and want to have nice text file list, you can do the following:

  • Export playlist as Plain text
  • :: awk 'BEGIN { FS="t"; RS="r" } { print($NF) }' | sed -e 's/:///g ; s/Macintosh HD//'
more ...

check_tcp -E

Just discovered one useful parameter for Nagios plugin check_tcp - '-E'. For example, simple check_memcached command using check_tcp with -E:

$USER1$/check_tcp -H $HOSTADDRESS$ -p 11211 -E -s 'stats\r\n' -e 'STAT pid' $ARG1$
more ...