https://github.com/cldwalker/is_it_ec2
is it ec2?
https://github.com/cldwalker/is_it_ec2
Last synced: 13 days ago
JSON representation
is it ec2?
- Host: GitHub
- URL: https://github.com/cldwalker/is_it_ec2
- Owner: cldwalker
- License: mit
- Created: 2012-04-23T10:09:36.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2013-04-12T03:47:00.000Z (about 13 years ago)
- Last Synced: 2025-07-01T16:59:09.923Z (11 months ago)
- Language: JavaScript
- Homepage: https://isitec2.herokuapp.com/
- Size: 246 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## Description
App to lookup if IP or hostname is on Amazon's EC2 infrastructure.
## Setup and Usage
Using ruby 1.9.3:
```sh
$ 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
```sh
$ heroku create -s cedar
# for analytics
$ heroku config:add GA_CODE=YOUR_CODE
```
## Credits
* @hundredwatt for [the gist](https://gist.github.com/2464999) that kicked this off