Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Paste Description for vote-for-brooke.sh

This script automatically votes for Brooke White on American Idol repeatedly until you kill it. It uses the "rand" script from http://www.pastebin.ca/977963 to randomize the timing (just in case American Idol uses automated voting detection and rejection based on time).

System Requirements:
* some flavor of Unix or Unix-like system
* dial-up modem that works in your *nix of choice and found at /dev/modem (with proper file permissions set, etc.)
* unix2dos, usleep, bash (plain sh might work)

Suggested System Configuration:
* the desire to vote for Brooke White (not strictly required :))

By the way, I personally knew Brooke White and her family. She lived very near me in Mesa, AZ (the rest of her family still does). Brooke is a very good pianist and singer.

VOTE FOR BROOKE!

vote-for-brooke.sh
Wednesday, April 9th, 2008 at 12:31:53am MDT 

  1. #! /bin/sh
  2.  
  3. # Copyright 2008 Christopher Williams (abbrev@gmail.com)
  4. # Use this script however you please. I'd like to hear from you if you actually use it
  5. # to vote for Brooke (and maybe even if you use it for some other purposes).
  6.  
  7. cleanup()
  8. {
  9.         echo cleaning up...
  10.         sleep 1
  11.         echo ATH | unix2dos >/dev/modem
  12.         exit
  13. }
  14.  
  15. num="$1"
  16. if [ -z "$num" ]; then
  17.         echo "Usage: $0 number"
  18.         echo "  where number is Brooke White's two-digit contestant number on American Idol"
  19.         exit
  20. fi
  21.  
  22. trap "trap '' 2 3 15; cleanup" 2 3 15
  23.  
  24. {
  25.         echo ATZ
  26.         while :; do
  27.                 echo ATDT186643657$num
  28.                 echo
  29.                 usleep `rand 10000000 11000000` # [10,11) seconds
  30.                 echo
  31.                 echo ATH
  32.                 usleep `rand 0 1000000` # [0,1) seconds
  33.         done
  34. } | unix2dos >/dev/modem

Paste Details

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right fantasy-obligation fantasy-obligation