Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
public
spec
views
.travis.yml
Gemfile
Gemfile.lock
LICENSE.txt
Procfile
README.md
Rakefile
application.rb
config.ru

README.md

Description

App to lookup if IP or hostname is on Amazon's EC2 infrastructure.

Setup and Usage

Using ruby 1.9.3:

$ bundle install
# start server
$ bundle exec shotgun

# In another tab
$ curl http://localhost:9393/google.com -> NOPE
$ curl http://localhost:9393/heroku.com -> YEP

Heroku Setup

$ heroku create -s cedar
# for analytics
$ heroku config:add GA_CODE=YOUR_CODE

Credits

  • @hundredwatt for the gist that kicked this off
Something went wrong with that request. Please try again.