Check These Out
Shows all block devices in a tree with descruptions of what they are.
*I run this with byobu as as a custom status bar entry that runs every 10 seconds by putting it in a script here:
$ .byobu/bin/10_update_windows
There's no output to stdout, so nothing is displayed on the status bar.
*Presumes that #{pane_title} is set to the hostname or prompt containing the host name. In my case, it's in this format:
$ $USER@$HOSTNAME:$PWD
The sed commands may need to be modified if your pane_title is different.
*If you want to strip out a common part of a hostname, add the following before '| uniq'
$ -e 's/[COMMON PART]//'
I use that to strip out the domain of the servers I connect to, leaving the subdomain.
Quick and kludgy rss parser for the recent tracks rss feed from last.fm. Extracts artist and track link.
In this example we search for 'vim' but vim doesn't have a project on github right now. That's ok, this command still searches for every project that has 'vim' in their description (forks, plugins, etc). To get XML or JSON output just replace 'yaml' in the url with 'xml' or 'json'.
Friday is the 5th day of the week, monday is the 1st.
Output may be affected by locale.
Efficiently clear all Windows Event log entries from within a Cygwin terminal. Uses "cygstart" to launch a hidden "PowerShell" session passing a Powershell command to loop through and clear all Windows Event Log entries. Very useful for troubleshooting and debugging. The command should in theory elevate you session if needed.
One liner is based on the PowerShell command:
$ wevtutil el | foreach { wevtutil cl $_ }
Great for watching things like Maildir's or any other queue directory.
Checks the Gmail ATOM feed for your account, parses it and outputs a list of unread messages.
For some reason sed gets stuck on OS X, so here's a Perl version for the Mac:
$ curl -u username:password --silent "https://mail.google.com/mail/feed/atom" | tr -d '\n' | awk -F '' '{for (i=2; i