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
git ls-files | xargs perl -le 'for (@ARGV) { print if -f && -T }' | xargs perl -pi -e 's/\r\n/\n/' |
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
git status -sb | awk '{ print $2 }' | sed -e '1d' | xargs perl -le 'for (@ARGV) { print if -f && -T }' |
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
git status -sb | awk '{ print $2 }' | sed -e '1d' | xargs perl -le 'for (@ARGV) { print unless -f && -T }' |
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
find . -type f -print0 | xargs -0 perl -pi -e 's/\r\n/\n/' |
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
# add requires as needed... | |
# main app | |
class App < Sinatra::Base | |
register Sinatra::Namespace | |
# mount routes from extension | |
register Sinatra::Guides | |
mount_guides |
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
'from http://stackoverflow.com/a/192184/1663589 | |
def dump(obj): | |
for attr in dir(obj): | |
print "obj.%s = %s" % (attr, getattr(obj, attr)) |
NewerOlder