Skip to content

Instantly share code, notes, and snippets.

View rmondello's full-sized avatar

Ricky Mondello rmondello

View GitHub Profile
#!/usr/bin/env ruby
# A quick script to download all your files from CloudApp.
# To run this just run the script passing your e-mail & password
# to the script, for example:
#
# gem install cloudapp_api
# ruby cloudapp-export.rb adam@atechmedia.com mypassword
#
@rmondello
rmondello / contributions.sh
Created August 15, 2012 05:53 — forked from tangphillip/contributions.sh
Find your contributions to a git repo, by file
# A regex that matches your commit name. Escape colons, if you use any.
NAME="(Phil(lip)? Tang|tangphillip@gmail.com)"
# Find all plaintext files. Warning: Can be slow with moderate or large repos
FILES=(`find . -type f -exec sh -c "file {} | grep text >/dev/null" \; -print`)
# Find files with extension ".coffee" or ".sass"
FILES=(`find . -name "*.coffee" -o -name "*.sass"`)
for FILE in ${FILES[@]}