Skip to content

Instantly share code, notes, and snippets.

View greggersh's full-sized avatar

Greg Gershman greggersh

View GitHub Profile
@jjulian
jjulian / stream.rb
Created September 18, 2012 12:42 — forked from davetroy/stream.rb
Capture tweets for a given lat/lon bounding box
#!/usr/bin/env ruby
$: << File.dirname(__FILE__)
require 'rubygems'
require 'eventmachine'
require 'em-http' # gem name em-http-request
require 'yajl'
require 'yajl/json_gem'
class Streamer
@trcarden
trcarden / gist:3295935
Created August 8, 2012 15:28
Rails 3.2.7 SSL Localhost (no red warnings, no apache config)
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
@benbalter
benbalter / instructions.md
Last active September 30, 2015 00:48
View without cache bookmarklet
@joshuap
joshuap / environment.rb
Created April 29, 2011 19:37
Net:HTTP enabled URI Validator for Rails 3
...
require 'uri_validator'