Skip to content

Instantly share code, notes, and snippets.

View jkogara's full-sized avatar

John O'Gara jkogara

View GitHub Profile
### Keybase proof
I hereby claim:
* I am jkogara on github.
* I am jkogara (https://keybase.io/jkogara) on keybase.
* I have a public key ASA2xuA_iKAgs3QwmBn6t1NxIGsIy5xtE_ha10PYcb7I9Ao
To claim this, I am signing this object:
```
hKRib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgrW6pf79qNP22tqwM7kv86t52Ct0WZaft6Hf+FCuOdc4Kp3BheWxvYWTFAup7ImJvZHkiOnsia2V5Ijp7ImVsZGVzdF9raWQiOiIwMTAxMGQ4NDU3NTI0MjgyN2IwNzY1MTg3OGVhYzU1MTc0MGU5MTM2ZjE2MzhiYzFiN2Y5OTRiMTRjMmQyNGVhNjJjNTBhIiwiaG9zdCI6ImtleWJhc2UuaW8iLCJraWQiOiIwMTIwYWQ2ZWE5N2ZiZjZhMzRmZGI2YjZhYzBjZWU0YmZjZWFkZTc2MGFkZDE2NjVhN2VkZTg3N2ZlMTQyYjhlNzVjZTBhIiwidWlkIjoiYmNlMmQyNTk3ODI0ZTk3YjBmYmYxMjA1MjFmZTQ4MTkiLCJ1c2VybmFtZSI6Imprb2dhcmEifSwic2VydmljZSI6eyJuYW1lIjoiZ2l0aHViIiwidXNlcm5hbWUiOiJqa29nYXJhIn0sInR5cGUiOiJ3ZWJfc2VydmljZV9iaW5kaW5nIiwidmVyc2lvbiI6MX0sImNsaWVudCI6eyJuYW1lIjoia2V5YmFzZS5pbyBnbyBjbGllbnQiLCJ2ZXJzaW9uIjoiMS4wLjE3In0sImN0aW1lIjoxNDczNzA2MTc4LCJleHBpcmVfaW4iOjUwNDU3NjAwMCwibWVya2xlX3Jvb3QiOnsiY3RpbWUiOjE0NzM3MDYwODcsImhhc2giOiIxZTk0MjkzZWNkZWZjNjhjMjE4YmE5MTM4M2M4ZTE3ZTcwOTg3MzIzNzJkYWNjMTA3YTY5ZTI5YjA1NTQ2OTg4YmZkMjc3MGE2N2JiYWQ4YWE5NDlhZjA2MTBjYmRkYjhlMzBkOGIyMjQyNDQzMzdmYjNhZjY3MzcyNGMwYTY2YyIsInNlcW5vIjo2MzE1OTN9LCJwcmV2IjoiMTQwZTY2MGNjOGE0NmQzNWZkMzc3NThlMjlmYjllNjAx
@jkogara
jkogara / rbenv-ctags
Created May 2, 2014 14:17
Ctags for project including gems
#!/bin/sh
set -e
PATH="/usr/local/bin:$PATH"
REL_PATH="`dirname \"$0\"`"
RUBY_VERSION=`cat $REL_PATH/../../.ruby-version`
PART_VERSION=`echo $RUBY_VERSION | awk 'BEGIN { FS = "-" } ; { print $1 }'`
GEMDIR=/opt/boxen/rbenv/versions/$RUBY_VERSION/lib/ruby/gems/$PART_VERSION/gems/
trap "rm -f .git/tags.$$" EXIT
ctags --tag-relative -Rf.git/tags.$$ --exclude=.git --languages=-javascript,sql --exclude=log --exclude=angular/node_modules --exclude=*bower_components* --exclude=doc --exclude=nohup.out --exclude=coverage --exclude=prototype --exclude=*coffee-script-source* --exclude=tmp --exclude=features --exclude=spec * $GEMDIR
mv .git/tags.$$ .git/tags
@jkogara
jkogara / gist:5489635
Created April 30, 2013 15:54
find mp3s less than 128k bit rate using sox. need to update to allow for sox returning an error or a float for the bit rate
find ./ -type f -iname "*.mp3" | while read mp3 ;
do
RATE=`soxi -B "$mp3" | sed 's/k//'`
if [ $RATE -le 128 ]
then
echo $RATE $mp3
fi
done