Skip to content

Instantly share code, notes, and snippets.

View tominsam's full-sized avatar

Tom Insam tominsam

View GitHub Profile
@tominsam
tominsam / fetch.py
Created May 11, 2012 13:41
crappy oyster data scraper
#!/usr/bin/env python
import mechanize
import datetime
import urllib
from bs4 import BeautifulSoup
##############
username = "fill me in"
password = "fill me in"
@tominsam
tominsam / history.rb
Created December 17, 2010 10:06
svn history dumping tool. Becaise I like to be able to browse commit histories very fast, and most nice gui tools insist on fetching them from the server only on demand. This is an ugly hack.
#!/usr/bin/env ruby
require 'rubygems'
require 'xmlsimple'
require 'fileutils'
info = XmlSimple.xml_in(`svn info --xml`, "ForceArray" => false)
root = info['entry']['url']
revision = info["entry"]["commit"]["revision"].to_i
if ARGV.size > 0
require 'rubygems'
require 'net/https'
require 'json'
class PhoneFinder
attr_accessor :proxyhost, :proxyport
attr_accessor :username, :password
def initialize(u, p)
if ENV["http_proxy"]
import time
from google.appengine.ext import webapp
from google.appengine.api import datastore
import logging
ACCUMULATE = False
def monkey_patch(namespace, name, wrapper):
nname = '_orig_' + name
if not getattr(namespace, nname, None):
@tominsam
tominsam / gist:9b188e42a706df998f5d
Created May 1, 2014 11:30
local instructions for building push certificates
Generating push certificates:
Go to iOS developer portal, go to "App IDs", open the production app ID and open
settings. Click "create certificate" and follow instructions to get
aps_production.cer and aps_development.cer. Make sure you use distinctive names
with date in the CSR so you can find the things later.
Import generated .cer files into keychain.
In keychain, select "my certificates" on the left, and expand the "apple