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