kill liferay script

December 19, 2011

Here’s a bash kill liferay script! This should kill any running liferay or liferay social office […]

gzip log files older than one day

December 19, 2011

To Gzip files older than one day place this in a cronjob: TODAY=`date +”%Y-%m-%d”` for logfile […]

kill orphaned httpd processes

December 5, 2011

to kill orphaned httpd processes create a script called killhttpd.sh with the following code #!/bin/bash for […]

rename mysql schema

November 15, 2011

How can you rename a mysql Schema? easy! Create the new schema In this example the […]

ssh port forwarding example

October 21, 2011

A ssh port forwarding example would be to map a remote host’s 3306 port to your […]

perl replace text in multiple files

August 4, 2011

perl replace text in multiple files perl -pi -e ‘s~OLDTEXT~NEWTEXT~g’ /path/to/filenames/* Alternative (to avoid escaping slashes): […]

convert ascii mysql db to utf8

July 13, 2011

how to convert ascii mysql db to utf8 ? I had a MyISAM mediawiki 1.11.0 database […]

bash diff alternative

July 6, 2011

How to setup a bash diff alternative nano -w /usr/bin/diff2 Copy and paste the below in […]