Skip to content

Instantly share code, notes, and snippets.

@armoucar
Created November 5, 2011 14:32
Show Gist options
  • Save armoucar/1341588 to your computer and use it in GitHub Desktop.
Save armoucar/1341588 to your computer and use it in GitHub Desktop.
great commands
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