platform — Access to underlying platform’s identifying data — Python 3.10.6 documentation
Python based scripts for obtaining system information from Linux
Python based scripts for obtaining system information from Linux.
Use Python to get all kinds of information about the Linux system
Generate a List of IP Addresses
An IP address sequence generator powered by alien technology from the future. 100x better than puny human technology. Try it out!
Dependencies Tree Implementation
For those who used apt-get, you know that everytime you install / uninstall something, you get the notificatons saying you need / no longer need certain dependencies.
I'm trying to understand the ...
Dynamically build a 'Build Dependency Graph'
Automate the build process with a Build Dependency Tree
How To Write Bash Shell Loop Over Set of Files
Explains how to loop through a set of files in current or any directory using shell script for loop under UNIX / Linux / macOS.
Recursive function in bash
I want to do a function that will return the factorial of a number in bash
Here's the current code that doesn't work, can anyone tell me what's wrong and how to correct it? I just started learning...
Bash Recursion Examples and Experiments with Local Variables
Recursion in programming is when a piece of code (usually a function) calls itself. If there is no exit case, the program will go on forever. We will be discussing recursion in a bash script with examples and discussing some peculiarities of the bash shell, such as local variables. Setup Let’s make a shell script.…
How to Use Command Line Arguments in a Bash Script | Baeldung on Linux
Learn how to use command-line arguments inside the bash script
rpm(8): RPM Package Manager - Linux man page
rpm is a powerful Package Manager, which can be used to build, install, query, verify, update, and erase individual software packages.
Count Lines in a File in Bash | Baeldung on Linux
Learn the most common ways of counting the number of lines of a specified file using Bash
The Parts of an RPM Query
Inspecting and extracting RPM package contents | Packagecloud Blog
Learn how to inspect and extract RPM package contents with working codes and examples in this article.
How can I convert my Bash script output to JSON and save it as “.json” file?
Here is my script:
Get System info
#!/bin/bash
readarray -t array <<< "$(df -h)"
var=$(echo "${array[1]}"| grep -aob '%' | grep -oE '[0-9]+')
echo "${array[3]:$...
Bash Array – How to Declare an Array of Strings in a Bash Script
Bash scripts give you a convenient way to automate command line tasks. With Bash, you can do many of the same things you would do in other scripting or programming languages. You can create and use variables, execute loops, use conditional logic, and store data in arrays. While
If Statements - Bash Scripting Tutorial
Bash if statements. Learn if statements, else, elif and case statements with sample scripts, detailed descriptions and challenges.
How to get the first element of an array in Bash
In this tutorial, we are going to learn about how to get the first element of an array in Bash. Consider, we have the following array. Now…
Bash declare command
Bash doesn't have a strong type system. To allow type-like behavior, it uses attributes that can be set by a command. ‘declare’ is a bash built-in command that allows you to update attributes applied to variables within the scope of your shell. In addition, it can be used to declare a variable in longhand. Lastly, it allows you to peek into variables.
How to Split String into Array in Bash [Easiest Way]
In this quick tip, you'll learn to split a string into an array in Bash script.
Creating a Bash script template
In the first article in this series, you created a very small, one-line Bash script
ShellCheck – shell script analysis tool
ShellCheck finds bugs in your shell scripts
Custom Dynamic DNS with UniFi Dream Machine Pro
Journey on how UniFi Dream Machine Pro’s Dynamic DNS is setup and how to have it point to a custom Dynamic DNS provider.
Let's Encrypt DNS Challenge | Lincoln Loop
Let's Encrypt is a new certificate authority. It is a huge improvement over the manual complex process of acquiring and …
Challenge Types
When you get a certificate from Let’s Encrypt, our servers validate that you control the domain names in that certificate using “challenges,” as defined by the ACME standard. Most of the time, this validation is handled automatically by your ACME client, but if you need to make some more complex configuration decisions, it’s useful to know more about them. If you’re unsure, go with your client’s defaults or with HTTP-01.
Automating Let's Encrypt Certificate Renewal using DNS Challenge Type
In the following examples, I'll show how to renew certs with domains hosted on AWS/Route53 and GoDaddy. I run certbot with scripts within a docker container (to simplify automation), however you can use CLI.
Let's Encrypt Server Certificate via DNS Challenge
How to obtain a Let's Encrypt certificate through a DNS Challenge.
auto update signatures dnssec
Trouble setting up rfc2136 - Help - Let's Encrypt Community Support
My domain is: https://arenlor.com/ I ran this command: certbot certonly --rsa-key-size 4096 --staple-ocsp --server 'https://acme-v02.api.letsencrypt.org/directory' --dns-rfc2136 --dns-rfc2136-credentials /etc/letsencrypt/rfc2136.ini -d arenlor.com -d '*.arenlor.com' It produced this output: Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator dns-rfc2136, Installer None Obtaining a new certificate Performing the following challenges: dns-01 challenge for ar...
dnssec-keygen unknown algorithm HMAC-MD5 | Netgate Forum