ls & rm with regular expression
e.g. rm -rf backup-20070[8-9]-* would delete : backup-200708-morning backup-200708-evening backup-200709-night backup-200709-latenight but not : backup-200706-morning backup-200707-afternoon...
View ArticleHow to dig SRV record after creating it in DNS
dig <record type> <host.name> e.g dig SRV _someservice._port.hostname.domainame.com.my OR dig SRV _https._ICMP.host.takizo.com
View Articleconvert epoch using date command
date -d ‘<Unix epoch> <epoch date> sec’ e.g. date -d ’1970-01-01 988822888 sec’ would dated “Wed May 2 17:31:28 MYT 2001″ 20080430 : get a particular date in epoch, e.g. date -d ‘Apr 30...
View Articlesplit – but no destination parameter to specify
first : cd /destination/directory second : split /source/directory/big-huge-file prefix-to-apply-onto-splited-files Voila !!! (use the parameter -b to specify the size of splited files in BYTES, NOT...
View ArticleHow to Edit Cell in Microsoft Excel on Mac OSX Leopard
Many windows user may know that F2 is the shortcut key to edit a cell on Microsoft Excel. I run native Microsoft Excel on Apple Mac OSX to do my claims, report, database and etc. Sometime it’s annoying...
View ArticleHow to Set to The Best Mouse Sensitivity for Apple Magic Mouse
I couldn’t find my best touch with the Mouse Sensitivity setting for Magic Mouse in System Preference. Ended up I decided to write the configuration directly to the system config file. I find the value...
View ArticleHow to Extend Apple Mac OSX to External Monitor Only
Happy to get myself a 23″ LED monitor, never realize how convenient it is to use 1920 x 1080 resolutions, I can now multiple on 9 terminals at one time, crazy huh? Here is how you can extend your Mac...
View ArticleShort Cut Key to Lock Screen in Mac OSX
Other than locking screen with Expose, there is another way to lock you Mac OSX by shutting off the screen Ctrl + Shift + Eject The short cut key is to turn off your monitor screen. Before that, do...
View ArticleHow to View Chinese Character with iTerm in Mac OSX
I guess most people use iTerm in Mac OSX, me too I do have a lot Chinese character file, or rather MP3 to view in Chinese character. To enable Chinese character in iTerm, change the encoding to UTF-8...
View ArticleOS X Lion, Things About New Mac OS X
OS X Lion Coming Soon We all knew that Apple Mac OS X Lion will be out in the mid of July, according to the rumors, should be 14 July 2011. I’ve been reading about it and what are the things on OS X...
View ArticleHow to Stream Spotify Desktop with Rocki
Just received MyRocki, hot from the oven and I am proud of backing this project on Kickstarter. Was wondering how to stream the music from Spotify Desktop on Mac, didn’t realize that you can select...
View Article