secure copy with failover – rsync & ssh

e.g. rsync -av –progress -e ‘ssh -i /alternate/id/file’ sshusername@host:/directory/or/file /destination/directory/or/file – should the copy process terminated through the half way, just run the exact command again and it will continue from the file is failed previously, without copying again starting…

iTerm resize the window itself when using screen

Bookmarks –> Manage Profiles –>  Terminal Profiles –> Default check “Disable session-initiated window resizing”.

how to search search & delete line in vi editor

the below command in vi editor will remove the whole line that contains the word “search-keywords” on the entire file. :g/search-keywords/d

installing postgresql 8.2 on Leopard with macports

postgresql! one of my favorite high performance open source db, of course i have it running on my mac. compiling postgresql with macports isn’t that hard, follow the step below will guide you through the installation; first of all, make…