Skip to content

Instantly share code, notes, and snippets.

@sysbot
sysbot / s3put
Last active August 29, 2015 14:17 — forked from rubiojr/s3put
#!/usr/bin/env python
import gevent.monkey
gevent.monkey.patch_all()
import boto
import config
import gevent
import gevent.pool
import os
require 'net/https'
require 'base64'
require 'json'
require 'uri'
class Catchpoint
@@host = 'https://io.catchpoint.com'
@@prefix = '/ui/api'
@@version = 1
# Get Sublime Text to use your rvm ruby without hardcoding a `$USER`.
#
# Include the configurations below the commend in the appropriate file listed below:
#
# - OS X ST2: ~/Library/Application Support/Sublime Text 2/Packages/Ruby/Ruby.sublime-build
# - OS X ST3: ~/Library/Application Support/Sublime Text 3/Packages/User/Ruby.sublime-build
# - Linux ST2: ~/.config/sublime-text-2/Packages/Ruby/Ruby.sublime-build
# - Linux ST3: ~/.config/sublime-text-3/Packages/User/Ruby.sublime-build
{
#!/usr/bin/python
import urllib2
import json
import pprint
pp = pprint.PrettyPrinter(indent=4)
class instance_size:
def __init__(self):
pass
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
#
# Current known FCC address ranges:
# https://news.ycombinator.com/item?id=7716915
#
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
#
# In your nginx.conf:
location / {