How to prettify HTML documents at the terminal

Print Friendly, PDF & Email

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 JSON documents at the terminal

Print Friendly, PDF & Email

Nowadays, many users and application developers know that using RESTful APIs is the most common and useful to grab remotely published data. It’s often to look at any RESTful API…

How to prettify XML documents at the terminal

Print Friendly, PDF & Email

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

Print Friendly, PDF & Email

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…

Add git branch name to bash prompt

Print Friendly, PDF & Email

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

Print Friendly, PDF & Email

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