curl

October 16th, 2009 by usage | 0 | Full Post

if you forget to renew your certificate your cron job may stop working so you may want to use this syntax instead

bashrc

August 25th, 2009 by usage | 0 | Full Post

Useful bashrc aliases edit your ~/.bashrc file by using VI vi ~/.bashrc alias l=”ls -la” alias st=’svn st’ alias di=’svn di’ alias di=’svn diff –diff-cmd diff -x -uw’ # ignore whitespaces alias ci=’svn ci’ alias up=”svn up” alias rs=”rsync –verbose –stats –recursive –times –perms –links –delete –exclude ‘*bak’ –exclude ‘*~’  –exclude ‘._*’ $1 $2″ EDITOR=vi […]

daylite

August 20th, 2009 by usage | 0 | Full Post

Daylite uses ports from 6113-6117

arp

June 4th, 2009 by usage | 0 | Full Post

#/usr/sbin/arp -av (192.168.0.1) at 00:01:02:FB:FC:4E [ether] on eth1 arp -a 192.168.0.1

Port-3389

May 22nd, 2009 by usage | 0 | Full Post

Port 3389 is used by Remote Desktop Connection Client

wget

May 14th, 2009 by usage | 0 | Full Post

How to download a site using wget Download the file in background. Will download all the links from the list.txt file and pretending that it’s Firefox. wget –continue –verbose –input-file=”list.txt” –output-file=”list.log” –user-agent=”Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1″ If you want to ignore the SSL expiration or validity you can pass –no-check-certificate parameter.

VBoxManage

April 16th, 2009 by usage | 0 | Full Post

VirtualBox command line usage Related http://www.ubuntugeek.com/how-to-control-virtual-machines-virtualbox-using-vboxmanage.html

tar

April 14th, 2009 by usage | 0 | Full Post

Create a tar file and verify the tar archive Related http://www.cyberciti.biz/faq/unix-verify-tape-backup/

du

April 14th, 2009 by usage | 0 | Full Post

Summarize disk usage of each FILE, recursively for directories.

rsync

April 14th, 2009 by usage | 0 | Full Post

rsync -e ssh –verbose –stats –compress –recursive –times –perms –links –delete –exclude “*bak” –exclude “.svn” –exclude “*~” –exclude “._*” /var/www/vhosts/domain.com user@domain.com:/var/www/vhosts/domain.com Recommendations: setup keyless login for user@domain.com also the user must have permissions to write in /var/www/vhosts/domain.com