Skip to content

Instantly share code, notes, and snippets.

# 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 / {
#!/usr/bin/python
import urllib2
import json
import pprint
pp = pprint.PrettyPrinter(indent=4)
class instance_size:
def __init__(self):
pass
# 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
{
require 'net/https'
require 'base64'
require 'json'
require 'uri'
class Catchpoint
@@host = 'https://io.catchpoint.com'
@@prefix = '/ui/api'
@@version = 1
@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
#!/usr/bin/python
import re, urllib, urllib2
class Spreadsheet(object):
def __init__(self, key, gid):
super(Spreadsheet, self).__init__()
self.key = key
self.gid = gid

Keybase proof

I hereby claim:

  • I am sysbot on github.
  • I am sysbot (https://keybase.io/sysbot) on keybase.
  • I have a public key whose fingerprint is 2208 B370 2485 6776 4C8D CB88 FF1B 7153 D57E 947A

To claim this, I am signing this object:

require 'ipaddr'
def crc16(buf)
crc = 0x00
buf.each_byte do |b|
print "b: #{b}\n"
# ^ binary xor
# >> binary right shift
# & bitwise 'AND'
crc = ((crc >> 8) & 0xff) ^ CRC_LOOKUP[(crc ^ b) & 0xff]
/usr/sbin/tcpdump -nnt -r tmp.pcap | egrep '[S]' | awk -F '.' '{print $1"."$2"."$3"."$4}\' | sort | uniq -c | sort -nr | head
#!/usr/bin/env ruby
require 'json'
require 'yaml'
input = $stdin.read
data = YAML::load(input)
json = JSON.dump(data)