Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
commit 8dad12c965a4abfb05124f671f077106972152f9
Author: Paul Tarjan <ptarjan@fb.com>
cleanup test output
Summary:
I started cleaning up the perl script and then realized that it wasn't buying us much at all. So I changed the ##test/run## script to just do the executing of the ##hhvm## directly and printing the output.
While I was in there, I also made the ##verify_to_json.php## redundant by allowing different output formats, one of which fbmake can consume.
@ptarjan
ptarjan / gist:1196701
Created September 6, 2011 05:55
Download all your photos from Flickr
#!/usr/bin/env python
#
# FlickrTouchr - a simple python script to grab all your photos from flickr,
# dump into a directory - organised into folders by set -
# along with any favourites you have saved.
#
# You can then sync the photos to an iPod touch.
#
# Version: 1.2
@ptarjan
ptarjan / brew doctor
Created July 25, 2011 03:57
brew update -v
$ brew doctor
Error: undefined method `<' for nil:NilClass
Please report this bug: https://github.com/mxcl/homebrew/wiki/Checklist-before-filing-a-new-issue
/usr/local/Library/Homebrew/cmd/doctor.rb:197:in `check_gcc_versions'
/usr/local/Library/Homebrew/cmd/doctor.rb:735:in `doctor'
/usr/local/bin/brew:82:in `send'
/usr/local/bin/brew:82
git log --since="12 months ago" --author=$USER | grep Summary: | wc -l
git log --since="12 months ago" | grep 'Reviewed By: '$USER | wc -l
git log --since="12 months ago" | grep 'CC: ' | grep $USER | wc -l
git log --since="12 months ago" --author=$USER --numstat | grep '^[0-9]' | awk '{sum+=$1} END {print sum}'
git log --since="12 months ago" --author=$USER --numstat | grep '^[0-9]' | awk '{sum+=$2} END {print sum}'
# This script will search google voice to see if there are any numbers
# available that spell a 10 letter word
#
# It can easily be customized for 9 letters, or to use your own dictionary, etc.
#
# Author: Paul Tarjan <http://paulisageek.com>
#
# Make sure you put your own cookie here. Search the web if you don't know how to find it.
cookie = "DQAAA<rest of cookie>"
@ptarjan
ptarjan / rockband.py
Created November 21, 2009 21:01
Algorithm for swtiching instruments in rockband. http://blog.paulisageek.com/2009/10/rock-band-group-algorithm.html
import random
import sys
instruments = ["Drums", "Vocals", "Guitar", "Bass"]
people = sys.argv[1:]
if len(people) == 0:
print "python rockband.py Name1 Name2 ..."
sys.exit()
if len(people) < len(instruments):
Deprecated: Assigning the return value of new by reference is deprecated in /var/www/paul.slowgeek.com/openidavatar/site/sessions/openid/common.php on line 71
Deprecated: Assigning the return value of new by reference is deprecated in /var/www/paul.slowgeek.com/openidavatar/site/sessions/openid/Auth/OpenID/Consumer.php on line 271
Deprecated: Assigning the return value of new by reference is deprecated in /var/www/paul.slowgeek.com/openidavatar/site/sessions/openid/Auth/OpenID/Consumer.php on line 273
Deprecated: Assigning the return value of new by reference is deprecated in /var/www/paul.slowgeek.com/openidavatar/site/sessions/openid/Auth/Yadis/XRDS.php on line 355
Warning: Parameter 2 to Auth_OpenID_GenericConsumer::_completeInvalid() expected to be a reference, value given in /var/www/paul.slowgeek.com/openidavatar/site/sessions/openid/Auth/OpenID/Consumer.php on line 669
Unknown Error. Try again.
Verifying I am +ptarjan on my passcard. https://onename.com/ptarjan
[ 0%] Built target fastlz
[ 0%] Built target afdt
[ 5%] Built target mbfl
[ 6%] Built target sqlite3
[ 6%] Built target timelib
[ 6%] Built target lz4
[ 6%] Built target double-conversion
[ 9%] Built target folly
[ 15%] Built target zip_static
[ 16%] Built target hphp_thrift
commit e4047dc130d0fe05efb989f448f5ebe1b7a3bd31
Author: Paul Tarjan <ptarjan@fb.com>
Date: 10 days ago
support display_errors
diff --git a/hphp/runtime/base/execution-context.cpp b/hphp/runtime/base/execution-context.cpp
index 2d83a46..07ae352 100644
--- a/hphp/runtime/base/execution-context.cpp
+++ b/hphp/runtime/base/execution-context.cpp