Skip to the content.

Build SSL certificate auto-renewal for Jenkins

So I try to build an auto-renewal flow to relief myself. The approach is pretty straightforward: use acme.sh to auto-renew the SSL cert periodically, and an in-house script update_cert_for_jenkins.py to do the jobs after SSL cert renewed (if any).

Read More

Compare commits between 2 branches

IMO, the ideal tool showing the different commits between 2 branches need to

  1. list all the different commits E, D, B;
  2. mark the direction (which branch has the commit);
  3. have the output format which is highly readable and is even customizable.
Read More

Useful commands when process stdout

-E option in grep, zgrep, sed

Although -e could work in most cases when regex in search phase, -E could help to save some escape backslash. In complex regex, bunch of backslashes will bring troubles.

Read More