Categories
Uncategorized

How to alter JSON documents

Take advantage of the jq utility to edit messages formatted using JSON (JavaScript Object Notation).

Categories
Uncategorized

How to pretty print decimal or binary numbers

Use numfmt command-line utility which is a part of the standard GNU Core Utilities to pretty print decimal or binary numbers.

Categories
Uncategorized

How to create LXD instance from snapshot

Create LXD instance from a specific snapshot.

Categories
SysOps

How to log specific Varnish requests

Use varnishlog to log specific Varnish requests.

Categories
DevOps

How to configure the Vagrant virtual machine to use a specific proxy

Configure the Vagrant virtual machine to use a specific proxy using the vagrant-proxyconf plugin.

Categories
SysOps

How to use virtual memory filesystem to store Varnish Shared memory Log

Varnish Shared memory Log can put a major strain on the disk (I/O write operations). The solution is to store it on the virtual memory filesystem.

Categories
SysOps

How to restart systemd service in case of failure

Configure systemd service to be restarted in case of failure.

Categories
DevOps

How to alter task history retention inside Docker Swarm cluster

Alter task history retention inside the Docker Swarm cluster to ensure that there are no stopped containers.

Categories
SysOps

How to determine which services need to be restarted

Use needrestart utility to determine which services need to be restarted after the upgrade.

Categories
DevOps

How to execute terraform in an offline mode

Execute the old and new Terraform using the selected provider in an offline mode.