A Few Hacks

31 May 2014

This week’s post is going to be a short one, just a bit of show-and-tell.


On my laptop, /usr/bin/sendmail looks something like this:

ssh mailsrv sendmail $@

Why would I configure two MTAs?


I use meetup.com for some things. I use the following script to check my upcoming events:

curl "https://api.meetup.com/2/events?rsvp=yes&text_format=plain&key=${api_key}" \
    2>/dev/null \
    | jshon -e results -a -e time -u -p -e name -u \
    | sed 's/[0-9][0-9][0-9]$//' \
    | while read -r time && read -r name; do
        printf '%s %s\n' "`date +'%B %d, %I:%M %p' -d @${time}`" "${name}"

Except for the variable assignment, that is one command.