Skip to content

Instantly share code, notes, and snippets.

@ccammilleri
Created June 29, 2017 19:28
Show Gist options
  • Save ccammilleri/51f2db09b85558934cc3b1ae82dc7438 to your computer and use it in GitHub Desktop.
Save ccammilleri/51f2db09b85558934cc3b1ae82dc7438 to your computer and use it in GitHub Desktop.
#! /bin/bash
PUSHOVER=true
ORG='9dcd0694b58847fba102f7158aa7d47c741baf54'
CURRENT=`wget -q -O - https://www.derbycon.com/ticket-purchases/ | sha1sum | awk '{print $1}'`
while true; do
echo "checking site..."
CURRENT=`wget -q -O - https://www.derbycon.com/ticket-purchases/ | sha1sum | awk '{print $1}'`
if [ $ORG != $CURRENT ];then
echo "CHANGE DETECTED!!!!! GO GO GO"
if $PUSHOVER;then
curl -s --form-string "token=xxxx" --form-string "user=xxxx" --form-string "message=https://www.derbycon.com/ticket-purchases/" https://api.pushover.net/1/messages.json
firefox --new-tab https://www.derbycon.com/ticket-purchases/
else
firefox --new-tab https://www.derbycon.com/ticket-purchases/
fi
exit
fi
clear
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment