Total 6 Posts
A scripting or script language is a programming language for a special run-time environment that automates the execution of tasks; the tasks could alternatively be executed one-by-one by a human operator. Scripting languages are often interpreted, rather than compiled.

SSH GeoBlocker

The sshGeoBlocker bash script uses geoiplookup to get the location of an IP address from a MaxMind GeoLite2 database. Combining this script with a fail2ban sshd jail, IP addresses can be blocked after a certain number of unsuccessful connection attempts.

Dynamic DNS with Digital Ocean

Python script to update DNS ecords managed by Digital Ocean. This might be useful for home servers with dynamic IP addresses.

Bash: The JMRemover

This article explains how to use the find command to enumerate the number of files or folders in a directory, and how to delete old backup files or directories using the same technique.

Encrypted Passwords in Bash is a lightweight library to use encrypted passwords in bash scripts. Secrets can be encrypted at runtime and then used, decrypted, in scripts.

NextCloud: Backup and Restore

Two bash scripts that can be used to back up or restore a NextCloud instance. EncPass is used to hide secrets.

Bash: Looping over Files and Folders

This article explains how to loop over files and folders in Linux.
You've successfully subscribed to bell0bytes
Great! Next, complete checkout for full access to bell0bytes
Welcome back! You've successfully signed in.
Unable to sign you in. Please try again.
Success! Your account is fully activated, you now have access to all content.
Error! Stripe checkout failed.
Success! Your billing info is updated.
Error! Billing info update failed.