Skip to content

Instantly share code, notes, and snippets.

@frantzmiccoli
Last active December 29, 2015 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save frantzmiccoli/7675188 to your computer and use it in GitHub Desktop.
Save frantzmiccoli/7675188 to your computer and use it in GitHub Desktop.
OVH Sold Out helper. A 2 cents bash script to help you monitor when OVH sold-out will finally end. It works on Mac OSX Mountain Lion, it needs to be tested/adapted for other OS.
#!/bin/bash --
# To use it
# watch -n 15 check-ovh-sold-out.sh
if r=`curl http://www.ovh.com/fr/serveurs_dedies/|grep mSP|grep -s -m 1 "Sold Out"`
then
echo "Found this wonderful sold out message!"
else
message="OVH is back in business"
terminal-notifier -message $message -title="Guess what?" 2>&1 > /dev/null || echo $message
say $message 2>&1 > /dev/null
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment