Quantcast
Channel: sleeplessbeastie's notes
Browsing all 770 articles
Browse latest View live

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. Pretty print binary number. $ echo 2K | numfmt --from=iec 2048 Pretty print...

View Article


How to alter JSON documents

Take advantage of the jq utility to edit messages formatted using JSON (JavaScript Object Notation). I will use JSON sample files from the JSON website. Prerequisites Install jq utility to parse JSON...

View Article


How to configure Vagrant to ignore SSL certificate

Configure Vagrant to ignore SSL certificate behind corporate proxy. The first case The first case is to download Vagrant box. $ vagrant box add --provider virtualbox debian/buster64 The box...

View Article

How to deal with non-obvious lack of free space when using lxd snap

Inspect and solve non-obvious lack of free space when using lxd snap. Display LXD snap version. $ snap list lxd Name Version Rev Tracking Publisher Notes lxd 4.0.4 18150 4.0/stable/… canonical✓ - The...

View Article

How to access ansible facts regardless of the target limits

Access required ansible facts regardless of the target limits on a particular run. The inventory Create an inventory file. I will use database group in the following examples. $ cat hosts.yml ---...

View Article


How to fix multipath daemon error about missing path when using VirtualBox

Fix multipath daemon error about missing path when using VirtualBox. Identify the issue by reading the syslog log file. $ sudo tail -f /var/log/syslog Jan 2 23:36:42 ubuntu-focal multipathd[524]: sdc:...

View Article

How to ensure that OpenSSH client uses explicitly configured authentication...

Ensure that OpenSSH client uses explicitly configured authentication identity even if authentication agent offers more identities. Use IdentitiesOnly OpenSSH client parameter to control this behavior....

View Article

Image may be NSFW.
Clik here to view.

How to store and visualize playbook events

Use JUnit callback plugin to store and Allure Framework to visualize ansible playbook events. Ansible JUnit callback plugin requires junit_xml Python module. [WARNING]: The `junit_xml` python module is...

View Article


Image may be NSFW.
Clik here to view.

How to force specific language in Jenkins

Ignore the browser’s language preference and set the specific language in Jenkins. At first, install the locale plugin. Open Manage Jenkins, then Configure System to set the default language.

View Article


How to display Java settings

Use a dedicated option to display Java settings. Display settings Display the system configuration. $ java -XshowSettings:system -version Operating System Metrics: Provider: cgroupv1 Effective CPU...

View Article

How to display ansible configuration settings that have changed from the default

Display Ansible configuration settings that have changed from the default. Display Ansible configuration file. $ ansible-config view -vv ansible-config 2.9.6 config file =...

View Article

How to restart service on every configuration change

Monitor file system events to restart service on every configuration change. I will use varnish service and wait for changes to the /etc/varnish/default.vcl configuration file before initiating restart...

View Article

Introduce Yourself (Example Post)

This is an example post, originally published as part of Blogging University. Enroll in one of our ten programs, and start your blog right. You’re going to publish a post today. Don’t worry about how...

View Article


Introduce Yourself (Example Post)

This is an example post, originally published as part of Blogging University. Enroll in one of our ten programs, and start your blog right. You’re going to publish a post today. Don’t worry about how...

View Article

Introduce Yourself (Example Post)

This is an example post, originally published as part of Blogging University. Enroll in one of our ten programs, and start your blog right. You’re going to publish a post today. Don’t worry about how...

View Article


How to deal with non-obvious lack of free space when using lxd snap

Inspect and solve non-obvious lack of free space when using lxd snap. Display LXD snap version. $ snap list lxd Name Version Rev Tracking Publisher Notes lxd 4.0.4 18150 4.0/stable/… canonical✓ - The...

View Article

How to access ansible facts regardless of the target limits

Access required ansible facts regardless of the target limits on a particular run. The inventory Create an inventory file. I will use database group in the following examples. $ cat hosts.yml ---...

View Article


How to fix multipath daemon error about missing path when using VirtualBox

Fix multipath daemon error about missing path when using VirtualBox. Identify the issue by reading the syslog log file. $ sudo tail -f /var/log/syslog Jan 2 23:36:42 ubuntu-focal multipathd[524]: sdc:...

View Article

How to ensure that OpenSSH client uses explicitly configured authentication...

Ensure that OpenSSH client uses explicitly configured authentication identity even if authentication agent offers more identities. Use IdentitiesOnly OpenSSH client parameter to control this behavior....

View Article

Image may be NSFW.
Clik here to view.

How to store and visualize playbook events

Use JUnit callback plugin to store and Allure Framework to visualize ansible playbook events. Ansible JUnit callback plugin requires junit_xml Python module. [WARNING]: The `junit_xml` python module is...

View Article
Browsing all 770 articles
Browse latest View live