you are in: codestackercodes [RSS] → tag: shell [RSS]

remove SVN control Delicious

removes all .svn directories recursively

show/hide lines
   1  find . -name .svn -exec rm -rf {} \; 
   2  
   3  find . -name .svn -print0 | xargs -0 rm -rf
created by leozera — 29 September 2008 — get a short url — tags: shell subversion svn embed

color your os x shell Delicious

open your ~/.bash_profile, paste and be happy!

show/hide lines
   1  export CLICOLOR=1
   2  export LSCOLORS=ExFxCxDxBxegedabagacad  
created by leozera — 29 September 2008 — get a short url — tags: mac shell embed

popular commands in your shell Delicious

my results:

146 svn 91 ./script/server 90 cd 38 ls 19 ssh 18 mate 12 rake 11 sudo 8 ping 8 find
show/hide lines
   1  history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn|head -10
created by leozera — 17 September 2008 — get a short url — tags: awk bash shell embed

Exibe o número de arquivos em um diretório Delicious

show/hide lines
   1  ls -1 | wc -l
created by rafaess — 11 July 2008 — get a short url — tags: contador diretorio shell embed

mysql one line all database backup Delicious

show/hide lines
   1  mysqldump --al-databases -u -p > backup.sql
created by anonymous — 04 July 2008 — get a short url — tags: backup mysql shell embed