Code Maven

Welcome to the Code Maven!

The main topics

Programming Exercises for any language.

Pretty print JSON with beautifier: How to make a JSON readable

jq is the swiss army knife for dealing with JSON files. If you can install it use that.

However I often find myself in situations where, for whatever technical, legal, or just plain stupid reason I cannot install it.

If you find yourself in similar situation, here are a few tools that might help you.


Pretty print JSON with beautifier: How to make a JSON readable


tmux a terminal multiplexer

tmux is great to keep a session on a remote computer alive even when you get disconnected because of a network failure or because you need to move from one network access point to another.

The interactive process you ran on the remote machine keeps running.

The editor you opened on the remote machine stays open. Even if you are in the middle of a cut-and-paste, when the connection is lost, you can still reconnect and you don't lose anything.

It can provide you with multiple buffers and split-windows to do more than one operation at the same time via a single ssh connection.

Here is my modest configuration file and some command I use.


tmux a terminal multiplexer


Create Digital Ocean Droplet using Terraform

Terraform makes it easy to manage various cloud resources. In this article we'll see how to use it to create (and destroy) Virtual Machines (aka. Droplets) on Digital Ocean.


Create Digital Ocean Droplet using Terraform


Digital Ocean Virtual Private Server Hosting