This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am xaptronic on github. | |
* I am alexpilon (https://keybase.io/alexpilon) on keybase. | |
* I have a public key whose fingerprint is 296E 6245 0A52 5C06 DC11 8F53 6A45 A6EF 4BAB C243 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- redis.js.orig 2011-10-06 22:28:10.000000000 +0000 | |
+++ redis.js 2011-10-06 22:51:18.000000000 +0000 | |
@@ -65,6 +65,7 @@ | |
// initialize a pubsub client and a regular client | |
this.pub = redis.createClient(opts.redisPub); | |
this.sub = redis.createClient(opts.redisSub); | |
+ this.sub.setMaxListeners(0); | |
this.cmd = redis.createClient(opts.redisClient); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mailer: | |
param: | |
transport: | |
class: Swift_SmtpTransport | |
param: | |
host: smtp.gmail.com | |
port: 465 | |
encryption: ssl | |
username: your_gmail_account | |
password: your_gmail_password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/lib/node_modules/tamejs/lib/parser.js:276 | |
throw new Error(str); | |
^ | |
Error: Parse error on line 9: | |
...), args = optimist.default('port', 8082 | |
----------------------^ | |
Expecting 'QUOTE1', 'QUOTE2', 'LABEL', 'LPAREN', 'RPAREN', 'LBRACKET', 'RBRACKET', 'LBRACE', 'RBRACE', 'GENERIC', 'COMMA', 'DOT', 'COLON', 'ID', 'DECIMAL', 'THIS', 'DEFER', 'SEMICOLON', 'FUNCTION' | |
at Object.parseError (/usr/local/lib/node_modules/tamejs/lib/parser.js:276:11) | |
at Object.parse (/usr/local/lib/node_modules/tamejs/lib/parser.js:352:22) | |
at Engine.parse (/usr/local/lib/node_modules/tamejs/lib/engine.js:396:19) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- lexer.l.orig 2011-10-07 14:48:04.000000000 +0000 | |
+++ lexer.l 2011-10-07 14:53:36.000000000 +0000 | |
@@ -23,7 +23,7 @@ | |
<INITIAL>"finally" return 'FINALLY'; | |
<INITIAL>"case" return 'CASE'; | |
<INITIAL>"switch" return 'SWITCH'; | |
-<INITIAL>"default" return 'DEFAULT'; | |
+<INITIAL>[^\.]"default" { return 'DEFAULT'; } | |
<INITIAL>"this" return 'THIS'; | |
<INITIAL>"with" return 'WITH'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/lib/stores/redis.js | |
+++ b/lib/stores/redis.js | |
@@ -75,6 +75,7 @@ function Redis (opts) { | |
} else { | |
opts.redisSub || (opts.redisSub = {}); | |
this.sub = redis.createClient(opts.redisSub.port, opts.redisSub.host, opts.redisSub); | |
+ this.sub.setMaxListeners(0); | |
} | |
if (opts.redisClient instanceof RedisClient) { | |
this.cmd = opts.redisClient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remote=$1 | |
default_remote=$remote | |
rsync_extra=$2 | |
if [ -z "$remote" ]; then | |
echo "Usage: fs_sync <sync_to>" | |
echo "Syncs changes made to the current directory tree to <sync_to>" | |
echo "E.g.; alex@hactar ~/dev/trunk $ fs_sync tpweb:code/trunk" | |
echo "Files in the current directory tree (~/dev/trunk) will be automatically pushed to tpweb:code/trunk whenever a change is made." | |
echo "Additionally you may define environment variables in the form git_sync_[branchname]=tpweb:code/other to push particular branches to specific remote locations and rely on the passed in remote as the default location." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function do_if_dir_empty { | |
[ "$(ls -A $1/)" ] || eval "$2" | |
} | |
find . -type d -not \( -wholename "*/.git*" -or -wholename "*/.svn*" \) -print | while read F; do do_if_dir_empty $F "$1"; done | |
# Usage: find_empty_dirs_and_do 'echo $1 is an empty dir' | |
# Ex: find_empty_dirs_and_do 'cp /path/to/gitignore $1/.gitignore' # now this directory will be tracked by git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listings: | |
class: sfDoctrineRouteCollection | |
options: | |
model: Listing | |
with_wildcard_routes: true | |
method_for_query: | |
list: oldestToNewest | |
object: customObjectMethod | |
other_action: myCustomMethod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
die () { | |
echo >&2 "$@" | |
exit 1 | |
} | |
HOW_FAR=1 | |
[ "$#" -eq 0 ] || HOW_FAR=$1 | |
echo $HOW_FAR | grep -E -q '^[0-9]+$' || die "need to pass a number if you gonna pass" | |
git log -n$HOW_FAR --oneline | cut -f1 -d' ' | xargs -I% git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT % | sort | uniq |
OlderNewer