Monday, September 2, 2013

Use tracepath instead of traceroute

Just wanted to note myself of this one,

$ tracepath
1: centos ( 0.094ms pmtu 1500
1: maximum ( 1.327ms
1: maximum ( 1.866ms
2: ( 55.341ms
3: ( 50.527ms
4: ( 73.554ms
5: ( 79.921ms
6: ( 83.518ms
7: ( 71.558ms
8: ( 71.437ms asymm 9
9: ( 211.873ms reached
Resume: pmtu 1500 hops 9 back 247

tracepath can be run without the need of any super user privileges.

Saturday, July 27, 2013

Is RAID 0 still beneficial or not?

Hmmm, I have no idea about this but if anyone might read about this, please check

That article is so very old but if you have a raid-0 setup either with SSD's in a RAID 0 setup vs SSD itself, any benchmark result you have, please share.

Monday, July 15, 2013

OSX VPN send all traffic over VPN via route command

Base on this inputs from stackoverflow
sudo /sbin/route add -host -interface ppp0

In this example, "" is the host that should be routed via the VPN and "ppp0" is the name of the VPN network interface (ifconfig shows you the list of network interfaces).

Friday, July 5, 2013

Problem with YAML in Perl

I have no idea why this fix but I was installing MySQLSandbox with an error occurred but this link helps me solve it,

Anyhow, to be particular, this one helps me solve the problem

$ su -
# cpan
# cpan> install Bundle::CPAN
# cpan> reload cpan
# cpan> exit

Sunday, June 16, 2013

Setting global environment in Mac OS X

I just wanted to quote myself on setting the environment variable in Mac OS X.


This is stated as,

1) Open a terminal prompt
2) Type sudo vi /etc/launchd.conf (note: this file might not yet exist)
3) Put contents like the following into the file
# Set environment variables here so they are available globally to all apps
# (and Terminal), including those launched via Spotlight.
# After editing this file run the following command from the terminal to update 
# environment variables globally without needing to reboot.
# NOTE: You will still need to restart the relevant application (including 
# Terminal) to pick up the changes!
# grep -E "^setenv" /etc/launchd.conf | xargs -t -L 1 launchctl
# See
# and
# Note that you must hardcode the paths below, don't use enviroment variables.
# You also need to surround multiple values in quotes, see MAVEN_OPTS example below.
setenv JAVA_VERSION 1.6
setenv JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
setenv GROOVY_HOME /Applications/Dev/groovy
setenv GRAILS_HOME /Applications/Dev/grails
setenv NEXUS_HOME /Applications/Dev/nexus/nexus-webapp
setenv JRUBY_HOME /Applications/Dev/jruby

setenv ANT_HOME /Applications/Dev/apache-ant
setenv ANT_OPTS -Xmx512M

setenv MAVEN_OPTS "-Xmx1024M -XX:MaxPermSize=512m"
setenv M2_HOME /Applications/Dev/apache-maven

setenv JMETER_HOME /Applications/Dev/jakarta-jmeter
4) Save your changes in VI and reboot your Mac. Or use the grep/xargs command show in the code comment above.
5) Prove that your variables are working by opening a Terminal window and typing export and you should see your new variables. These will also be available in IntelliJ and other GUI apps you launch via Spotlight.

Tuesday, May 28, 2013

MySQL: Running MySQL in command line thru mysqld

Just wanted to take note of this. Instead of running your MySQL as a service, or thru mysqld_safe, the command line you can run can actually be like this.

  1.  /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/macmini.local.err --pid-file=/usr/local/mysql/data/