A few days ago I mounted a file in the docker host to a file in a docker container when starting a docker container. However, when I edited the file in the docker host, the file change was not reflected… Read More
a good book about iptables
iptables is widely used in Linux to manipulate network packets. There are a lot of blog posts about its usage. I also recommend one here: https://www.frozentux.net/documents/iptables-tutorial/ This book contains many use cases and command parameter explanation about iptables. It alos… Read More
stop vim from adding a newline at the end of a file
The below option can be set to prevent vim from add a newline at the end of a file :set nofixendofline This option is useful when you edit a file under version control system or the extra new line may… Read More
add a desktop entry for intellij idea
The software package for Intellij Idea community version is a self-contained standalone package, which can be run by executing the idea.sh script under the bin directory, as long as a Java Runtime Environment has been installed and correctly configured. However,… Read More
a few words about groovy and gradle
In order to write the Jenkins pipeline, I learned the basic syntax of the groovy programming language several weeks ago. groovy is a scripted language based on Java Virtual Machine. It adopts most of the Java grammars, with a few… Read More
fix “the task was canceled by a user” error in VMware
A few days ago, I encountered an error saying ‘the task was canceled by a user’, when I tried to deploy a OVF template using VMware vsphere client. When I first glanced at this this error message, I though my… Read More
curl command examples
I post a few curl command example for future reference curl -f –create-dirs -o /path/to/local/file http://foo.com/path/to/remote/file -f: fail silently on server errors. –create-dirs: create missing directories -o: the path of the local file curl -f -v –user “username:password” –upload-file /path/to/local/file… Read More
a few notes about jenkins pipeline
A few days ago I wrote a jenkins pipeline and tried to run it. However, it always showed pending. After struggling for a while, I found the root cause: the master node was disabled. This prevented the pipeline from running.… Read More
use lsof to list open files in linux
Recently I encountered a situation, in which I need to list open files under a directory. I searched the quick start tutorials of lsof command and found a few useful snippet. I posted them here. 1. List open file or… Read More
steps to install pyenv
pyenv is a tool to manage different versions of python installation. This post summarize the steps that I take in order to install pyenv tool. You can also reference the steps in the pyenv installer as below: https://github.com/pyenv/pyenv-installer However, the… Read More