Skip to content

Instantly share code, notes, and snippets.

@messick
messick / gist:2784560
Created May 24, 2012 22:26
brew --config 2>&1 | pbcop
HOMEBREW_VERSION: 0.9
HEAD: 09c170ea043abb570d5cc4dbd69e77ddc77f3033
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.7.4
Kernel Architecture: x86_64
Xcode: 4.3.2
GCC-4.0: N/A
GCC-4.2: N/A
@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")