Here is a handy and useful Linux and Unix shell script that reduce PDF file size using Ghostscript. No need to upload your PDF file to the shady third-party website. Just do it from the terminal. I tested it with both CentOS and Ubuntu/Debian Linux.
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 to start / stop / restart chrooted nginx web server under CentOS / RHEL Linux. You must have Nginx web server setup in a chroot (jail) so that you can minimizes the damage done by a potential break-in by isolating the web server to a small section of the filesystem. You can also mount $jail/tmp as a separate filesystem (/images/tmpfile.bin) with the noexec,nosuid, nodev options under Linux like operating systems.
A simple shell script wrapper to record current terminal session of a linux or unix desktop.
A simple shell script to purge Bitgravity cdn cache using API and curl command line. Tested on RHEL 6.x, Debian 6.x, and Ubuntu Linux.
A Linux shell script to mount dm-crypt (transparent disk encryption subsystem in Linux kernel) partitions with passphrase.
mbrback shell script creates a backup of your hard drive’s MBR and its partition table. You can then use mbrback to restore the MBR boot code, full MBR, or partition table from the backup files.
A simple shell script to rip audio cd and create mp3 file using lame and cdparanoia utilities.