Skip to content

Instantly share code, notes, and snippets.

View gsiener's full-sized avatar
🚴‍♂️
NYC

Graham Siener gsiener

🚴‍♂️
NYC
View GitHub Profile
#!/usr/bin/env ruby
#
# Proof-of-Concept exploit for Rails Remote Code Execution (CVE-2013-0156)
#
# ## Advisory
#
# https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ/discussion
#
# ## Caveats
#
@gsiener
gsiener / postgresql.rb
Created December 3, 2011 19:49 — forked from zedtux/postgresql.rb
Brew formula to install Postgresql 8.4.4 with working url
require 'formula'
require 'hardware'
class Postgresql <Formula
homepage 'http://www.postgresql.org/'
url 'http://ftp.riken.go.jp/pub/FreeBSD/distfiles/postgresql/postgresql-8.4.4.tar.bz2'
md5 '4bf2448ad965bca3940df648c02194df'
depends_on 'readline'
depends_on 'libxml2' if MACOS_VERSION < 10.6 # Leopard libxml is too old
@gsiener
gsiener / km.rb
Created August 25, 2011 13:58
A much simpler approach to using Kissmetrics instead of the provided gem. Requires delayed_job and httparty gems.
class KM
@id = nil
@key = nil
class << self
def init(key)
@key = key
end
@gsiener
gsiener / gist:40188
Created December 27, 2008 04:32 — forked from peterc/gist:33337
# SUPER DARING APP TEMPLATE 1.0
# By Peter Cooper
# Link to local copy of edge rails
inside('vendor') { run 'ln -s ~/dev/rails/rails rails' }
# Delete unnecessary files
run "rm README"
run "rm public/index.html"
run "rm public/favicon.ico"