Sunday, October 13, 2013

Installing and removing node.js

How to install node.js on Mac OSX?
R> go to the http://nodejs.org/ site and click install

How to uninstall node.js on Mac OSX?
R> sudo rm -rf /usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,share/man/*/node.*}

Thursday, October 10, 2013

rsync magic

How to transfer filtered files and its entire directory structure to other unix machine, fast, compressed and efficiently? well... rsync

rsync -azvr --include-files='*.log' --include-files='*/' -exclude-files='*' --prune-empty-dirs <source dir> <target dir>

Sunday, October 6, 2013

Macbook Pro Fusion Drive

Finally i got my toys to convert my Macbook Pro laptop hard drive into a "Fusion Drive", it really works and it is worth the time spent. This is what it buy on amazon:

- The SSD, the fastest part of my new fusion drive: http://www.amazon.com/gp/product/B009NB8WR0/ref=ox_sc_sfl_title_3?ie=UTF8&psc=1&smid=A5NGTWX0QUPDH
- The Hard Drive Caddy, where the old hard drive goes after been replaced: http://www.amazon.com/gp/product/B009FWRZDY/ref=ox_sc_sfl_title_1?ie=UTF8&psc=1&smid=A3CFTGPNICL2HK
- The DVD drive slot, where the removed dvd drive goes after been removed: http://www.amazon.com/gp/product/B005RFOJT6/ref=ox_sc_sfl_title_2?ie=UTF8&psc=1&smid=A3HDZ91DLL5YJC

So, to get it done you have to: