A sample shell script to build an LXD (Linux Containers) VM lab on Ubuntu Linux 16.04 or 18.04 LTS server.
A sample shell script to mirror remote server directory in pull mode for offsite backups using rsync command on Linux/Unix-like system.
Here is a simple and easy to use bash shell script to purge/delete Cloudflare url/images cache from the command line without using web interface.
Cloudflare is a CDN, DNS, WAF, DDoS protection, and reverse proxy service. You need to use the ngx_http_realip_module module to change the client address sent in the specified header field such as CF-Connecting-IP or X-Forwarded-For. This shell script downloads a list of IPv4 and IPv6 address from Cloudflare and generates an updated /etc/nginx/cloudflare.real.ip.conf file:
A simple shell script wrapper to update all lxd container hypervisor images eitehr running Debian or Ubuntu Linux.
A simple shell script wrapper to start / stop / restart NFSv4 service on CentOS / RHEL v.6.x server in a particular order. This script also demonstrates how to use the ln command to create soft links to the same script and take a different action as per $0.
A simply shell script to update all Redhat Enterprise Linux 5 / CentOS Linux 5 servers. You must have ssh public and private key installed.The last example shows how to login as a normal user and run sudo to update the same. This will save a lot of time if you’ve 5-7 servers patch when RHN releases updates.