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:
#!/bin/sh
ssh mailsrv sendmail $@
Why would I configure two MTAs?
“Calendar”
I use meetup.com for some things. I use the following script to check my upcoming events:
api_key=CENSORED
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}"
done
Except for the variable assignment, that is one command.