How 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
1 2 3 4 5 6 7 8 9 10 |
Open your iTerm Terminal Press Apple Command key + i Encoding, select UTF-8 Remember to click on Update Default |
Short 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
1 2 3 4 5 6 7 |
Ctrl + Shift + Eject |
The short cut key is to turn off your monitor screen. Before that, do make sure password lock is…
How 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 -31000 fit me the best….
split – 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 kb, mb or gb)
convert 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 2008 00:00:00’ ‘+%s’
Recent Comments