Minimal Bash script template that will make your scripts safer, consistent with standards, and provide a way to parse and validate parameters.
Author: Admin
How To Repeat A Command Every X Seconds On Linux
This article explains how to repeat a command every X seconds, in 2 ways: using watch, and using sleep in a while loop (avoiding time drifting).
Source: How To Repeat A Command Every X Seconds On Linux – Linux Uprising Blog
Free up Disk Space – Clear Systemd Journal Logs in Ubuntu 20.04
Going to free up Ubuntu system disk space? Try clearing the systemd journal logs, it may free up a few GB of space.
…..
You can also edit the configuration file to limit the journal log disk usage (100 MB for example).
Source: Free up Disk Space – Clear Systemd Journal Logs in Ubuntu 20.04 | UbuntuHandbook
How To Use Assignment Expressions in Python
Python 3.8, released in October 2019, adds assignment expressions to Python via the
:=
syntax. The assignment expression syntax is also sometimes called “the walrus operator” because:=
vaguely resembles a walrus with tusks.Assignment expressions allow variable assignments to occur inside of larger expressions. While assignment expressions are never strictly necessary to write correct Python code, they can help make existing Python code more concise. ….. In this tutorial, you will use assignment expressions in several examples to produce concise sections of code.
Source: How To Use Assignment Expressions in Python | DigitalOcean
The Easiest Way to Install OpenVPN Server on Raspberry Pi
OpenVPN is a service to host your own VPN server, without using third-party servers.
A VPN is a secured connection between two networks, for example between your phone and your home.
In this tutorial, I’ll give you a step-by-step method to install it quickly on Raspberry Pi.
Source: The Easiest Way to Install OpenVPN Server on Raspberry Pi – RaspberryTips
Identify Fonts Online with These Free Tools
Find fonts from text or images using these free tools. Have you found a font you like but don’t know the name? These tools can help you find the name using an image or text.
Source: Identify Fonts Online with These Free Tools | Gizmo’s Freeware
Change CPU Governor And Frequencies On Linux With cpupower-gui (New Release)
cpupower-gui is a tool that makes it easy to change the CPU governor as well as the CPU frequency limits on Linux.
Source: Change CPU Governor And Frequencies On Linux With cpupower-gui (New Release) – Linux Uprising Blog
Sudo Permission Denied with Redirect or Pipe [Solutions]
In this tutorial, I will show you how to use the sudo command when using it with redirect or pipe. When using sudo with redirection (>) or pipe (|), you will get Permission denied error message in bash output. Further here, I will show you different ways to fix this problem.
Source: Sudo Permission Denied with Redirect or Pipe [Solutions] (LinOxide)
Schedule Commands And Scripts In Linux With Zeit (GUI For Cron And At)
Zeit is a Qt GUI for cron and at, allowing you to schedule recurring or one time tasks. The application also allows setting an alarm and a timer.
Other features include the ability to add, edit and delete environment variables for crontab, as well as optional PolKit support for root actions.
Source: Schedule Commands And Scripts In Linux With Zeit (GUI For Cron And At) – Linux Uprising Blog
How To Sandbox Processes With Systemd On Ubuntu 20.04
Sandboxing is a computer security technique that focuses on isolating a program or process from parts of a system that it does not need to interact with during normal operation. In this tutorial you will run through a practical demonstration of how to use systemd’s sandboxing techniques on Ubuntu 20.04 for an efficient workflow to implement and to test these techniques. Any process that runs on a Linux system that uses systemd can be made more secure with these techniques.
Source: How To Sandbox Processes With Systemd On Ubuntu 20.04 | DigitalOcean
Recent Comments