How to prettify HTML documents at the terminal

When working with RESTful APIs, developers often hit API endpoints to test and look up data in either JSON or XML as the common formats. We have published two recent…

How to prettify XML documents at the terminal

Recently, we have published a post about prettifying JSON documents at the console window which is likely useful for many developers. In this post using some ideas from this question,…

How to automatically delete a Docker container after running it

Normally, a Docker container persists after it has exited. This allows you to run the container again, inspect its filesystem, and so on. However, sometimes you want to run a…

Check internet proxy with curl command on Linux

When your services must talk to the Internet proxy to go out of your secured networks, how can you verify that proxy being effective? In this post, I am going…

Check listening ports with netstat

If you’re troubleshooting a service that you know is running normally, the next step is to ensure it’s listening on the correct network port. This post is going to show…

pbcopy and pbpaste with Terminal in MacOS

The MacOS shell is very powerful to let you solve all your problems without making use of graphical tools. However, I am pretty sure an awful lot of users are…

Add git branch name to bash prompt

By default, git won’t display branch name to terminal prompt. To know which branch you are in, just run git branch command. However, if you want to customise how to…

How to export environment variables defined in a file

Using environment variables in modern applications is very common https://unix.stackexchange.com/questions/79064/how-to-export-variables-from-a-file https://unix.stackexchange.com/a/79084/30988 set -a . ./tmp.txt set +a

Create Symbolic Links on Windows

Your Python codes store and resident in many places on your computer. Is this a bit messed up to remember which Python directory you are looking for, isn’t it? On…

Use PowerShell to Set Environment Variables

What Are Environment Variables? Two fundamental components of any computer programming language are variables and constants. Like independent variables in a mathematical equation, these take on values that change the results of the…