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
<?php | |
require_once 'vendor/autoload.php'; | |
$class = $argv[1]; | |
$class = str_replace('/', '\\', $class); | |
$refl = new ReflectionClass($class); |
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
alias mongo.start="mongod run --config `brew --prefix mongodb`/mongod.conf" | |
alias apache.start="sudo /usr/sbin/apachectl start" | |
alias apache.stop="sudo /usr/sbin/apachectl stop" | |
# alias cake="${dev}/framework/cake/console/cake" | |
alias cakephp="${dev}/framework/cake/console/cake" | |
alias run.elasticsearch='elasticsearch -f -D es.config=/usr/local/Cellar/elasticsearch/0.18.5/config/elasticsearch.yml' |
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
# General Ack Settings | |
#################################################################### | |
# only search with case sensitivity if there is mixed case | |
--smart-case | |
# follow symlinks | |
--follow | |
# Ack Type Settings |
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 justinrainbow on github. | |
* I am justinrainbow (https://keybase.io/justinrainbow) on keybase. | |
* I have a public key ASAyl1QWmXnM04A-VtPfv2nMTgJeTj1pSVMB-KY1fUsK-Ao | |
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
#!/bin/bash | |
pkgin -y in rabbitmq | |
rabbitmq-plugins enable rabbitmq_stomp rabbitmq_management | |
cat > /opt/local/etc/rabbitmq/rabbitmq-env.conf <<-EOF | |
RABBITMQ_NODENAME=rabbit | |
RABBITMQ_HOME=/var/db/rabbitmq | |
EOF |
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
var sys = require('sys'), | |
spawn = require('child_process').spawn, | |
// args from command line | |
filename, servers; | |
if (process.ARGV.length < 4) { | |
return sys.puts("Usage: node remote-tail.js filename server1 [serverN]"); | |
} |
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/sbin/dtrace -s | |
/* | |
* mysql_db_slow.d Trace queries slower than specified ns. | |
* | |
* USAGE: ./mysql_db_slow.d min_ns | |
*/ | |
#pragma D option quiet | |
#pragma D option defaultargs | |
#pragma D option switchrate=10hz |
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
Show hidden characters
{ | |
"bold_folder_labels": true, | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
".DS_Store", | |
"dump.rdb" | |
], | |
"font_size": 12.0, | |
"highlight_modified_tabs": true, |
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
ls -t /tmp/uscreens/S-$USER | awk -F '.' 'NR > 1 { print $1 }' | xargs -I {} screen -S {} -X quit |
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
[apply] | |
whitespace = nowarn | |
[alias] | |
co = checkout | |
stage = add | |
unstage = reset HEAD | |
plog = log --pretty=format:\"%h %Cblue%cr%Creset %cn %Cgreen%s%Creset\" | |
st = status | |
ci = commit |
NewerOlder