Skip to content

Instantly share code, notes, and snippets.

@rcw3
rcw3 / gist:2018059
Created March 11, 2012 20:21
Self-contained WWDC Status Checker Hack
#!/bin/bash
# run from terminal and you can watch it log as well... or nohup it
cd ~
testSiteForChanges ()
{
ls "old_page.html" 1>/dev/null 2>/dev/null
if [ $? -eq "1" ] ; then
/usr/local/bin/wget -q -O old_page.html $1
@rcw3
rcw3 / gist:2017653
Created March 11, 2012 18:50
Crude WWDC announcement detector
#!/bin/bash
testSiteForChanges ()
{
ls "old_page.html" 1>/dev/null 2>/dev/null
if [ $? -eq "1" ] ; then
wget -q -O old_page.html $1
fi
wget -q -O new_page.html $1
diff old_page.html new_page.html 1>/dev/null