Articles by yingbo

A better feature branch naming in Intellij IDEA

Intellij Idea has a very nice feature: you can customize feature branch name. When create a new task, the Intellij IDEA will help you...

Get a random number from command line

On mac or bsd, we can use jot. jot -r 1 0 10000 or jot -r 1 0 0x7fffffffffffffffL On linux need to install the package athena-jot: sudo...

Docker: how delete everything

Just want fresh restart and delete all containers? Here is the code: docker stop $(docker ps -a -q) docker rm $(docker ps -a -q) If you...

Docker machine and vmware fusion

It is great that docker can use vmware fusion on Mac as the VM, other than the slow virtual box. The command to use it is as easy as:...

SSH Reverse Tunnel

The SSH has many advance usages. The reverse tunnel is a good example and a very useful one. It answers the question: if a user can ssh...

How to lock screen from command line on a Mac

Interesting enough, there is no easier way than do a little "programming". I found the following solution on...

Remove a service from rc.d

Here is the example: update-rc.d -f apache2 remove