Tag: bash
-
Javascript Button Masher
A few years ago, I embarked on a journey to create a special game for my son, known as the Toddler Button Masher. Initially developed using Unity, it quickly became a source of endless amusement for him. When he hit a key, it changed the background and played a sound. Toddlers are easily amused, as…
-
Bash Script To Backup Folders and Databases using a Cron Job
I sometimes find I need a simple script to backup one or multiple folders and databases. This script just takes a list of pre-defined folders and databases, compresses the folder contents, and executes a database dump. A maximum of seven backups are kept, any older ones are deleted. Customize the first six variables as needed.
-
Bash Script To Create WordPress Site
A few months ago, I wrote a bash script that creates a database with a few simple prompts. Even though I knew the database commands from memory, it was still more convenient to only input the necessary data. I decided to build out a similar workflow for creating WordPress sites. At the core of this…
-
Bash Script To Create Database and User
I find that during development, there are three database commands I typically execute for any project that uses a MySQL database. I typically need to do three things: create a database create a user grant database access to the user I created a simple bash script to run these commands, along with setting a few…