Command line notification

This week I wrote a bash function that curls the SendGrid API and sends a Boxcar notification. This is useful to chain to the end of long-running commands, e.g. transcoding a video. When the command finishes I get a push notification on my phone.

If you're unfamiliar with the various ways to chain commands together in bash, here's a cheatsheet. One thing I didn't know is that you can combine the various operators like long-running command || alert "failure!" && alert "success!".

Happy scripting.