Skip to content

Instantly share code, notes, and snippets.

@yachi
Created November 4, 2011 06:57
Show Gist options
  • Save yachi/1338813 to your computer and use it in GitHub Desktop.
Save yachi/1338813 to your computer and use it in GitHub Desktop.
有貨未
while sleep 15; do if [ `curl -s "http://store.apple.com/hk" |md5` != 3627b1dac6a928cfc587d5ac3be0654c ]; then open http://store.apple.com; fi done
while sleep 2 ; do
if [ `curl http://store.apple.com/hk/browse/home/shop_iphone/family/iphone/iphone4s -s |grep "Currently unavailable"|wc -l` != 10 ]; then
open "http://store.apple.com/hk/browse/home/shop_iphone/family/iphone/iphone4s"
while true; do
echo "有貨啦哈哈哈"
say -v sin-ji "有貨啦哈哈哈"
done
else
if [ $(echo $(head /dev/urandom | md5 | tr -cd '[[:digit:]]')%2|bc) == 0 ]; then
echo "做野啦望 $(date +%H:%M:%S)"
else
echo "成功須苦幹 $(date +%H:%M:%S)"
fi
sleep 10
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment