Monthly Archives: September 2012

Auto start Apache on CentOS (start on boot)

/sbin/chkconfig --levels 235 httpd on

Duplicate MySQL database

mysqldump -u [USER] --password=[PASSWORD] -h [HOST] [DATABASE_TO_COPY] | mysql -u [USER] --password=[PASSWORD] -h [HOST] [COPY_TO_DATABASE]

Export GIT Repo (zip)

git archive --format zip --output /path/to/zipfile.zip master 

convert tab to space (vim)

:set expandtab tabstop=4 shiftwidth=4
Page 1 of 11