This is a script I use on a lot of sites to copy the database (MySQL) and any uploaded files to the development site, and modify the database as required.
This script makes it easy to upgrade phpMyAdmin on one or multiple servers at the same time.
This is a script I used when I wanted to create a symlink on a remote web server, but that web server had the ln command disabled (using cPanel’s Jailshell).
I use this script to repeatedly delete and re-create a Linux (Debian/Ubuntu) user account for testing my dotfiles installation script.
This is a general-purpose function to ask Yes/No questions in Bash, either with or without a default answer. It keeps repeating the question until it gets a valid answer.
Every now and then you need to work out if a script is running in Cygwin…
How to detect whether input is from keyboard, a file, or another process. Useful for writing a script that can read from standard input, or prompt the user for input if there is none.