Create Tar Spanning in multiple files
Quick way to create tar multiple file from the terminal tar czpvf - /archive | split -d -b 100M - disk This will archive the folder name /archive and split it into 100MB with each naming disk00,...
View ArticleRead/Write NTFS on Mac
Install the latest OSXFUSE http://osxfuse.github.com/. This will only mount NTFS but you can’t write to the drive yet. Next in the terminal install ntfs-3g driver. Prior that, you need to link the...
View ArticleKMPlayer RealMedia Settings
Taking from a useful post from KMPlayer forum. I’m getting a few problem playing RealMedia files using the KMPlayer default settings. Sometimes after playing a while, the video and audio doesn’t sync...
View ArticleInstall Missing Signature Driver in Windows 8
Press the Windows Key and the ‘R’ key simultaneously Type “shutdown.exe /r /o /f /t 00″ and click ok. Select ‘Troubleshoot’ Select ‘Advanced options’ Select ‘Startup Settings’ Select ‘Disable Driver...
View ArticleChange SSH Key Passphrase
To change the passhrase of the SSH private key to new password/no password with the below command. $ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile] If adding a new key, then would...
View ArticleReset MySQL Root Password
$ sudo /etc/init.d/mysql stop$ sudo mysqld_safe –skip-grant-tables &$ mysql -u root mysql> use mysql;mysql> update user set password=PASSWORD(“YOUR-NEW-ROOT-PASSWORD”) where...
View Articlegitolite-shell missing
Using gitlab and gitolite, when I moved the data git repo I’m getting error of the gitolite-shell missing when users trying to git access. You need to update the latest path of gitolite in...
View ArticleInterval Update Function on Google Script Spreadsheets
When writing a Google Script for Spreadsheets on Google Docs, I found out that the Functions does not update itself even already set a built-in timer. So, a way to work around is to set one cell such...
View ArticleHow to bitcoind on Build Mac OS X
To compile for bitcoind on Mac OS X, just follow instruction here: https://github.com/gavinandresen/bitcoin-git/blob/master/doc/build-osx.md Add on note: I tested homebrew berkeley-db4 is no more...
View ArticleEqualising the your Ears Pressure
Quick tips at Article over Gizmodo Why Your Ears Pop Hold your nose, close your mouth Turn your head to the right until your chin touches your shoulder Swallow hard until your left ear pops Turn your...
View ArticleMost Used Terminal Command
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head -20
View ArticleHide Finder on Startup
In Mac, to find the Finder when login. Here is the way. Create Apple Script as below code and export as Application. Use Login Item to ensure the script run as a usual application. I also added a 90...
View ArticleMac OS X Mavericks Java Installation
After installation of Mac OS X Mavericks, the next is to install Java to ensure some of my Java apps are working fine. Here the link: https://www.macupdate.com/app/mac/39490/apple-java
View ArticleMac App Store Weird App appears
I’m getting updates for Twitter app on app store updates, but the thing is I didn’t install Twitter app at all. So checking Mac with proper App Store registry by typing: mdfind...
View Articleumount: device is busy.
When umount a device, which process is causing “device busy”? The suggested method is using lsof and fuser Here is an example: lsof | grep <device or directory name> or fuser -m <device or...
View ArticleInstall Nginx source on Ubuntu
I want to get FancyIndex install on my nginx but without removing my original nginx settings. So first follow the instruction here http://wiki.nginx.org/NgxFancyIndex Some of additional libraries and...
View ArticleWordPress Asking for FTP credentials
I notice when I upgrade one of my blog doesn’t require any FTP credentials but another requires. To avoid this, is to set the directory to the same user as the hosting daemon service running. For...
View ArticlePostgreSQL error “duplicate key violates unique constraint”
When insert data into PostgreSQL and getting the error of “ERROR: duplicate key violates unique constraint”. That means the primary key has out of sync. Need to check the database SELECT...
View ArticleWhen restarting Windows 7 and it stuck at the black screen
When restarting Windows 7 and it stuck at the black screen with the cursor blinking, the first thing is insert the Windows 7 DVD and fix the Mbr. Main reason is because it is the OEM disc and not the...
View ArticleACL x+ problem
When I woke up this morning, and started to notice some strange behaviour appear on the Mac. Certain applications couldn’t delete things while some was having some problem showing some saving issue....
View Article