Skip to content

Instantly share code, notes, and snippets.

View endform's full-sized avatar

André JH Pinter endform

View GitHub Profile

Keybase proof

I hereby claim:

  • I am endform on github.
  • I am endform (https://keybase.io/endform) on keybase.
  • I have a public key whose fingerprint is 2EF8 57C2 5B5C 01EA 2E1F C315 3A67 C332 F400 7143

To claim this, I am signing this object:

@endform
endform / gist:9260896
Created February 27, 2014 22:21 — forked from mccv/gist:9260811

A burrito is composed of the following

  • Tortilla
  • Rice
  • Beans
  • Meat
  • Cheese
  • Salsa
  • Olives
  • Salsa
  • Guacamole
@endform
endform / gist:9081218
Created February 18, 2014 22:01
boot-tmux
function boot-tmux {
rename-window $@
tmux new-session -d -s $@
tmux send-keys -t $@ "teamocil --here $@" C-m
tmux attach-session -t $@
}
@endform
endform / boot-tmux.sh
Created June 4, 2013 17:55
script to start tmux session w/ teamocil profile
function boot-tmux {
echo -ne "\033]0;$@\007"
tmux new-session -d -s $@
tmux send-keys -t $@ "teamocil --here $@" C-m
tmux attach-session -t $@
}
@endform
endform / container.html
Created June 12, 2012 00:59
Cancel Event with Data URI Bug Repro
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: grey;
}
</style>
</head>
<body>
ruby elastic-mapreduce --jar s3://elasticmapreduce/samples/distcp/distcp.jar --arg $S3_PATH --arg $HDFS_PATH -j $JOB_ID
@endform
endform / single_step_emr_cli.sh
Created October 27, 2011 22:56
Single Step EMR
MY_BUCKET=my_bucket
S3_INPUT_PATH=s3n://$MY_BUCKET/data/logins_data
OUTPUT_PATH=s3n://$MY_BUCKET/output/summarized
PIG_SCRIPT=s3n://$MY_BUCKET/scripts/provider_counts.pig
ruby elastic-mapreduce --create --alive --num-instance 3 --enable-debugging s3n://$MY_BUCKET/logs
JOB_ID=X # found in the output of the last command.
ruby elastic-mapreduce --pig-script --args "$PIG_SCRIPT,-p,INPUT=$S3_INPUT_PATH,-p,OUTPUT=$OUTPUT_PATH" -j $JOB_ID
@endform
endform / multistep_emr_cli.sh
Created October 27, 2011 22:54
Multistep EMR
MY_BUCKET=my_bucket
S3_PATH=s3n://$MY_BUCKET/data/logins_data
HDFS_PATH=hdfs:///data/logins_data
OUTPUT_PATH=s3n://$MY_BUCKET/output/summarized
PIG_SCRIPT=s3n://$MY_BUCKET/scripts/provider_counts.pig
ruby elastic-mapreduce --create --alive --num-instance 3 --enable-debugging s3n://$MY_BUCKET/logs
JOB_ID=X # found in the output of the last command.
ruby elastic-mapreduce --jar s3://elasticmapreduce/samples/distcp/distcp.jar --arg $S3_PATH --arg $HDFS_PATH -j $JOB_ID
ruby elastic-mapreduce --pig-script --args "$PIG_SCRIPT,-p,INPUT=$HDFS_PATH,-p,OUTPUT=$OUTPUT_PATH" -j $JOB_ID