Skip to content

Instantly share code, notes, and snippets.

View justinrainbow's full-sized avatar

Justin Rainbow justinrainbow

View GitHub Profile
@justinrainbow
justinrainbow / .gitconfig
Created September 6, 2013 15:19
My ~/.gitconfig
[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
@justinrainbow
justinrainbow / gist:7663199
Created November 26, 2013 18:17
clean out old screen sessions
ls -t /tmp/uscreens/S-$USER | awk -F '.' 'NR > 1 { print $1 }' | xargs -I {} screen -S {} -X quit
{
"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,
#!/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
@justinrainbow
justinrainbow / spec-builder.php
Created February 20, 2014 15:52
Create PhpSpec base specs from existing code
<?php
require_once 'vendor/autoload.php';
$class = $argv[1];
$class = str_replace('/', '\\', $class);
$refl = new ReflectionClass($class);
### 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: