Created
April 8, 2012 20:19
-
-
Save bruzed/2339662 to your computer and use it in GitHub Desktop.
everyday bash
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
#dump functions and stored procedures | |
$ mysqldump <other mysqldump options> --routines > outputfile.sql | |
#build gem | |
$ gem build [gem_spec] | |
#find and delete | |
$ find [source-name] -name [folder-to-delete] -exec rm -rf {} \; | |
#duplicate | |
$ ditto -V path/to/folder path/to/folder | |
#duplicate | |
$ ditto -V path/to/folder path/to/folder | |
#find and delete .DS_Store files from git repo | |
find . -name .DS_Store -print0 | xargs -0 git rm --ignore-unmatch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment