Created
November 5, 2011 14:32
-
-
Save armoucar/1341588 to your computer and use it in GitHub Desktop.
great commands
This file contains hidden or 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
great commands. | |
remove all gems from a gemset: | |
gem list | cut -d" " -f1 | xargs gem uninstall -aIx | |
find a pattern inner files: | |
find / -type f -print0 | xargs -0 grep -i pattern | |
change encoding of files: | |
iconv -f ISO-8859-1 -t UTF-8 EncodeFrom.java > EncodeTo.java | |
delete all files recursively from a folder: | |
find . -name \*.ext -type f -delete | |
Vim | |
:map <C-m> i<CR><Esc>h | |
Mac OSX: | |
killall Finder | |
defaults write com.apple.LaunchServices LSQuarantine -bool NO // Sem confirmação para abrir arquivos obtidos por download |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment