Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on GPG

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

  1. Symmetric encryption (using passphrase).

    gpg -c file
    
  2. Decrypt a symmetric encrypted file. You will be prompt to enter your passphrase.

    gpg file.gpg
    
  3. You can use the following command to encrypt …

Tips on Docker Compose

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

Installation

docker-compose can be installed using the following command on Ubuntu.

wajig install docker-compose

And docker -compose can be installed using brew on macOS.

brew install docker-compose

Examples

version: '3'
services …

Tips on NFS

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

  1. Make sure nfs service is not blocked. Check iptables and "/etc/hosts.allow".

  2. Make sure nfs service is running on the server.

    sudo service nfs-kernel-server start

  3. You can choose the version …

Comparison of Collections in C++ and Java

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

Plain Old Array

  1. The length/size of array is as in the declaration. Each element of the array is initialized to the default value (null for object).

  2. Array in Java does …