News for hackers. Stuff that matters.

Be first to get a Nexus 5

for (( ; ; )); do if curl "https://play.google.com/store/devices" -L -s --compressed | grep -q "exus 5" ; then echo "Nexus 5 is Launched" ; fi ; sleep 10 ; done ;

Enough said :D

( 7 comments | 11 points | on HN )
Re:Be first to get a Nexus 5 by apetresc on Thursday October 31, 2013 @12:31PM (#6647772)
If you're on a Mac I recommend using 'say' instead of 'echo'. Then you'll hear when it's finished instead of having to check the terminal (which kind of defeats the purpose)
Re:Be first to get a Nexus 5 by ibudiallo on Friday November 01, 2013 @07:01PM (#6657113)
On linux, you can use espeak as it is installed by default as text-to-speach engine:

echo "Nexus 5 launched" | espeak

Re:Be first to get a Nexus 5 by knotty66 on Thursday October 31, 2013 @12:54PM (#6647937)
Or echo -e "\aNexus 5 is launched" perhaps.
Re:Be first to get a Nexus 5 by sashazykov on Thursday October 31, 2013 @12:07PM (#6647609)
You can use http://uptimerobot.com/ I monitor wikipedia censorship using it ;)
Re:Be first to get a Nexus 5 by deadfish on Thursday October 31, 2013 @12:46PM (#6647889)
Nice! I will try it too.
Re:Be first to get a Nexus 5 by elacey on Thursday October 31, 2013 @05:18PM (#6650006)
uptime robot didn't work... interesting concept though
Re:Be first to get a Nexus 5 by alphaclass16 on Thursday October 31, 2013 @12:19PM (#6647691)
thanks, trying this out.