Posts by Year


Back to top ↑


Setting up WSL

February 01, 2020  |  less than 1 minute read

Setting up WSL (Windows Subsystem for Linux)

Back to top ↑


SQLAlchemy mixin in method

September 25, 2019  |  less than 1 minute read

Share common methods across SQLAlchemy db model classes by using mixin.

A fast way to check TCP port in Powershell

September 14, 2019  |  3 minute read

Test-NetConnection is too slow if the remote port is not opened due to its timeout setting. Use System.Net.Sockets.TcpClient instead.

Git Cheat Sheet

June 19, 2019  |  4 minute read

Some personal often forgotten git commands.

Back to top ↑


Setup HTTPS for Gitlab

September 16, 2018  |  6 minute read

Setup a SAN SSL certificate to use the HTTPS on Gitlab-CE in docker on Ubuntu server.

Use python tabulate module to create tables

July 28, 2018  |  1 minute read

Use the tabulate module to create some tables in pure text mode from a python list, than you can past it into markdown, wiki files or python cli.

Git untrack submodule from git status

June 22, 2018  |  1 minute read

submodule folders cannot be added into .gitignore file to untrack them from git status, we will use ignore=dirty to ignore it

Git alias

May 20, 2018  |  less than 1 minute read

Some useful alias which make your Git life happier.

Powershell stop-parsing (--%)

May 16, 2018  |  3 minute read

Use Powershell stop-parsing (--%) to treat the remaining characters in the line as a literal.

Back to top ↑