Someone commented how the Splashy Pants script could really be just one line. I take it he’s a Code Golfer.
Since I am adept at Ruby (not bash), here’s a Ruby one-liner to vote for Mr. Splashy Pants:
while true do; `curl -v -d "item_id=65&commit=SUBMIT+MY+VOTE" -e "http://www.greenpeace.org/international/campaigns/oceans/whaling/great-whale-trail/gwt-vote?MM_URL=linkfromsplashblog" -A "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)" http://vote.greenpeace.org/11/12`; sleep 5; end
Save as “splashy.rb”. You’ll need ruby installed of course. Then simply:
ruby splashy.rb
This one repeats infinitely. (please do not actually run this one for too long lest you DDoS the polling server… =)

0 Responses to “One Line Mr. Splashy Pants Script (Ruby)”