Convert magnet to bit torrent online

VIM: Fix indentations

In normal mode, gg=G where gg goes back to the first line and =G re-indents.

Mac OS X Finder: show or hide file extensions

In Finder's Preferences, activate Advanced tab, and tick Show all file extensions

MacVIM: set default font in .gvimrc

edit ~/.gvimrc:
set guifont=Monaco:h15
Note: there is NO spaces around the equal sign.
set guifont=Courier\ New:h15
Note: slashes are required if the font name contains spaces.

VI (VIM): show or hide special characters

  • To show special characters e.g. tabs or line-breaks:
    :set list
    or set it in .vimrc
    set list
  • To hide special characters e.g. tabs or line-breaks:
    :set nolist
    or set it in .vimrc
    set nolist

Eclipse delete password entry from secure storage

Preference > General > Security > Secure Storage > Contents > > Delete

Free Windows Apps

CutePDF writerPDF writerCutePDF Writer installs itself as a "printer subsystem". This enables virtually any Windows applications (must be able to print) to convert to professional quality PDF documents - with just a push of a button!
Microsoft security essentialsAnti-virusMicrosoft security essentails.
Sumatra PDFPDF ReaderSumatra PDF is a free PDF, eBook (ePub, Mobi), XPS, DjVu, CHM, Comic Book (CBZ and CBR) reader for Windows. Sumatra PDF is powerful, small, portable and starts up very fast.Simplicity of the user interface has a high priority.


  1. Pain past is pleasure.
  2. While there is life, there is hope.
  3. Wisdom in the mind is better than money in the hand.
  4. Storms make trees take deeper roots.
  5. Nothing is impossible for a willing heart.
  6. The shortest answer is doing.
  7. All things are difficult before they are easy.
  8. Great hopes make great man.
  9. God helps those who help themselves.
  10. Four short words sum up what has lifted most successful individuals above the crowd: a little bit more.
  11. In doing we learn.
  12. East or west, home is best.
  13. Two heads are better than one.
  14. Good company on the road is the shortest cut.
  15. Constant dropping wears the stone.
  16. Misfortunes never come alone/single.
  17. Misfortunes tell us what fortune is.
  18. Better late than never.
  19. It’s never too late to mend.
  20. If a thing is worth doing it is worth doing well.
  21. Nothing great was ever achieved without enthusiasm.
  22. Actions speak louder than words.
  23. Lifeless, faultless.
  24. From small beginning come great things.
  25. One today is worth two tomorrows.
  26. Truth never fears investigation.
  27. The tongue is boneless but it breaks bones.
  28. A bold attempt is half success.
  29. Knowing something of everything and everything of something.通百艺而专一长。
  30. Good advice is beyond all price.

Skype for Mac: disable auto spelling correction

Skype enables the spelling correction by default which makes more trouble for me than it benefits. To disable it:
  • Edit -> Spelling and Grammar
  • uncheck Correct Spelling Automatically

.nfs files: what are they?

The .nfsXXXXXX files are created when an open file is removed but is still being accessed. The NFS client trying to maintain proper "delete on later close" unix behavior within its own operational abilities. This NFS behavior is known as "silly rename":

NFSv4.1 will get away from this behavior with OPEN4_RESULT_PRESERVE_UNLINKED:

SSH server: disable root login

edit /etc/ssh/sshd_config:
sudo vi /etc/ssh/sshd_config
comment out the following line:
#PermitRootLogin no
restart ssh server:
/etc/init.d/ssh restart

tar: exclude leading components in the path when extracting an archive

If a archive with structure of /dir1/dir2/dir3/ and I want to exclude /dir1/dir2 when extracting:

tar xvf my.tar --strip-components=2

tar: exclude leading part of the absolute path when making an archive

  • When archiving /dir1/dir2/dir3/*.txt using tar, I want to include only the dir3/*.txt in the archive. -C option (means change directory to) can be used.

    tar -C /dir1/dir2 -cvf dir3.tar dir3/*.txt

Mac OS X: Add or remove folder to Favorites Side bar in Finder

  • To add a folder to the favorites sidebar, hold command key and use the mouse to drug the folder onto Faverites.
  • To remove the folder from the favorites sidebar: right click the folder, select "Remove from sidebar"