Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on VPN

** Things on this page arefragmentary and immature notes/thoughts of the author. It is not meant to readersbut rather for convenient reference of the author and future improvement. **

  1. You might have difficulties to visit some web pages when you are using VPN. This is probably because the location set by …

Backup Files Using "rsnapshot"

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

To truncate the relative path while backing up using Rsnapshot:

  1. Uncomment the line started with rsync_long_args.

  2. Remove the --relative option and add the --no-relative option.

Work More Efficiently with Email

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Do not use email+extra@gmail.com. This only makes things more complicated. Of course, it makes your accounts securer. Do not use it to subscribe emails!!!

  2. Not a good idea …

The Cinnamon Desktop Environment for Linux

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Preferred Applications -> Removable Media check "Never prompt or start programs on media insertion"

Remote Desktop Using Remmina

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

NoMachine is a better alternative than Remmina for Linux.

  1. Remmina does not save plain password, instead, it saves encrypted password. So do not worry about password leaking using Remmina.

Tips on MongoDB

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

{"\(and": [{"tags": {"\)regex": "idea"}}, {"tags": {"$regex": "idea"}}]}

{"\(and": [{"tags": {"\)regex": "idea"}}, {"tags": {"$regex": "mob"}}]}

mongoimport -d notes -c note notes.json

mongodb: dbpath, centos: /data/db by default