Skip to content

Instantly share code, notes, and snippets.

@messick
messick / gist:2784556
Created May 24, 2012 22:26
brew install -v pango --use-clang 2>&1 | pbcopy
==> Downloading http://ftp.gnome.org/pub/GNOME/sources/pango/1.30/pango-1.30.0.tar.xz
Already downloaded: /Library/Caches/Homebrew/pango-1.30.0.tar.xz
xz -dc "/Library/Caches/Homebrew/pango-1.30.0.tar.xz" | /usr/bin/tar xf -
==> ./configure --disable-dependency-tracking --disable-debug --prefix=/usr/local/Cellar/pango/1.30.0 --enable-man --with-x --with-html-dir=/usr/local/Cellar/pango/1.30.0/share/doc --disable-introspection
./configure --disable-dependency-tracking --disable-debug --prefix=/usr/local/Cellar/pango/1.30.0 --enable-man --with-x --with-html-dir=/usr/local/Cellar/pango/1.30.0/share/doc --disable-introspection
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
@messick
messick / gist:2484172
Created April 24, 2012 21:57
Audit Users against Facebook Graph Information
bad_fb = []
exception = []
# Create a new file and write to it
File.open('/Users/developer/Documents/results.csv', 'w') do |f|
User.where("'facebook_access_token' IS NOT NULL").each do |u|
unless u.facebook_access_token.nil?
begin
@graph = Koala::Facebook::API.new(u.facebook_access_token)
profile = @graph.get_object("me")
@messick
messick / pull_request_500
Created May 2, 2014 19:45
Pull Request 500 Error
// Request Headers
Request URL: https://sprint.ly/product/20177/commits/N8RcXc2LmxkEgN4Y6TSLN3jk6Xwag6kd
Request method: POST
content-type: application/x-www-form-urlencoded
Expect:
User-Agent: GitHub Hookshot 7c7c383
X-GitHub-Delivery: 0af05580-d231-11e3-945f-14e51215ab21
X-GitHub-Event: pull_request
// Request Payload