Category: Howto

To remove the promiscuous mode authentication in VMware Fusion

To remove the promiscuous mode authentication “A virtual machine is attempting to monitor all network traffic” prompt you need to create promiscuous authorized file.

Shadowsocks and OpenWRT (ss-redir) transparant proxy setting

Shadowsocks and OpenWRT together can make your local network routing rock!

Atlassian License Key Decoder

I made a Atlassian License Key Decoder at: http://www.swiftcore.com/atlassian/, simply paste the license key content and decode. Please be noted that this Atlassian products license key decoder does not (and can not) generate any Atlassian key at all. This decoder

Parsing bash arguments with ‘getopts’

Let’s suppose that I’m writing a test script, that needs, as argument, the type of the test, the server, the server root password and for debugging purpose we’re going to have a verbose flag too. So, putting it down: “-t”

Split File Into Smaller Multiple Files

This example will show how to TAR and GZIP a large file and split the file into smaller multiple files. First, TAR and GZIP the large file: tar -czvf newlarge.tgz largefile.dat After the that step is done you should now

Move /var to another existing partition?

Go into single user mode, and make sure any process writing to /var is stopped. (Check with lsof | grep /var) mkdir -p /home/var rsync -va /var /home/var mv /var /var.old # you can remove /var.old when you are done

List the tables that ain’t support Galera Cluster

Basically, if you want to have your DB serve by Galera cluster, you have to use InnoDB storage engine and define a primary key for each table.

Remove ^M characters at end of lines in vi

UNIX treats the end of line differently than other operating systems. Sometimes when editing files in both Windows and UNIX environments, a CTRL-M character is visibly displayed at the end of each line as ^M in vi. To remove the

Dumping MySQL Stored Procedures, Functions and Triggers

MySQL 5 has introduced some new interesting features, like stored procedures and triggers. I will show in this small post how we can backup and restore these components using mysqldump. mysqldump will backup by default all the triggers but NOT the stored procedures/functions. There are 2 mysqldump parameters that control this

Uninstall Zend Server on Mac

Mac is awesome, however, the out frustration might be when you want to uninstall an application. The drag and drop into trash concept to uninstall an application is simple, but it leaves a lot of junks in your computer as

Top