Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on Vim

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

Vim Distributions

Reload File

:e!

https://unix.stackexchange.com/questions/149209/refresh-changed-content-of-file-opened-in-vim

/\cPatterToSearch

:set ignorecase

:set smartcase /copyright " Case insensitive /Copyright " Case sensitive /copyright\C " Case …

Tips on Eclipse Che

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

You can launch an Eclipse Che server using the command below.

docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v /workdir/che:/data eclipse/che start

The …

Get Coordinates of Points on a Screen or Image

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

Get the Coordinate of a Pixle/Point on an Image

Most image editing software (e.g., GIMP) can tell you the coordinate of a point on an image.

Get the Coordinate …

Install NodeJS on Ubuntu

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

wajig install nodejs npm
sudo ln -s /usr/bin/nodejs /usr/bin/node

Notice that it is necessary to create a symbolic link for node, as many Node.js tools use …

Cluster Management Made Easy with Ansible

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

Installation

sudo pip3 install ansible

Configuration

Ansible looks for configuration file in the following order.

  1. ansible.cfg in the current directory.

  2. ~/.ansible.cfg

  3. /etc/ansible.cfg

Examples

Copy a file to …