Command Line tools

Here are the tools I use to live my  life on the command line: Mail Client: Mutt Filtering: procmail, imapfilter Search: mairix General Web Client: Lynx, Links, Elinks, w3m Tools: wget, aria2c, curl Web Services Toodledoo: toodledo (ruby gem) Misc search engines: Surfraw Google Calendar: gagenda Ebay: esniper BBC Iplayer: get_iplayer Google Drive: gdrive Google …

Continue reading ‘Command Line tools’ »

Commandline IMAP Mail check & Screen

I wanted a commandline IMAP mailbox checker so I wrote one: imapchkr Normal output for this is as below: ➜ ~ [jamespo: 0/190] [gmail: 0/80] But I decided I wanted to embed it in my GNU screen hardstatus so expanded it to offer a short output option (imapchkr -s). See bottom left corner for output. …

Continue reading ‘Commandline IMAP Mail check & Screen’ »

“Invert” a dict in python

If you have a list/tuple in python and you want to use the items in there to return an index of the position of the item, you can do so like this: a = (‘archive’, ‘audio’, ‘document’, ‘video’, ‘executable’, ‘image’, ‘misc’, ‘parity’) lookup = { v:k for k,v in enumerate(a) }

Warn your clients before disabling SSLv3 on Apache for POODLE

With POODLE, everyone is hurrying to disable SSLv3 on their webservers. However some sites still have clients that for whatever reason have not updated from XP / IE6 (it’s only been out 13 years, what’s the rush?) Instead of immediately locking them out you might like to give them a few days warning with some …

Continue reading ‘Warn your clients before disabling SSLv3 on Apache for POODLE’ »