Skip to content

Instantly share code, notes, and snippets.

@bruzed
Created April 8, 2012 20:19
Show Gist options
  • Save bruzed/2339662 to your computer and use it in GitHub Desktop.
Save bruzed/2339662 to your computer and use it in GitHub Desktop.
everyday bash
#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