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/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 [email protected] mypassword | |
# |
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
# A regex that matches your commit name. Escape colons, if you use any. | |
NAME="(Phil(lip)? Tang|[email protected])" | |
# 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[@]} |