Skip to content

Instantly share code, notes, and snippets.

@nbryan
Created November 21, 2011 19:35
Show Gist options
  • Save nbryan/1383661 to your computer and use it in GitHub Desktop.
Save nbryan/1383661 to your computer and use it in GitHub Desktop.
Nominate Adaptly for some useless TechCrunch Crunchie awards
#!/bin/ruby
require 'net/http'
require 'uri'
values = {
"form_1" => "Adaptly", # Best Technology Achievement
"form_17" => "Nikhil Sethi and Garrett Ullom (Adaptly)", # Founder of the Year
"form_18" => "Nikhil Sethi (Adaptly)", # CEO of the Year
"form_20" => "Adaptly" # Best Overall Startup of 2011
}
uri = URI.parse("http://crunchies2011.techcrunch.com/wp-content/plugins/crunchies/nom.php")
values.each do |k, v|
response = Net::HTTP.post_form(uri, "cat" => k, "name" => v)
puts response.code
puts response.body
end
@nbryan
Copy link
Author

nbryan commented Nov 21, 2011

Run with this command in Terminal:

curl https://raw.github.com/gist/1383661/eba09febc71395823f2ff59b5e653fa6b9b235fb/gistfile1.rb | ruby

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment