Author: Gavin Simpson
Creating a WordPress child theme
Same of creating a child theme for the standard word press theme ‘twentytwentyfour’. First create the theme sub-directory, and in that root sub-directory : Create style.css Create functions.php Add “define(‘FS_METHOD’, ‘direct’);” to wp-config.php Finally make sure uploads directory is www owned.
Creating a MySql 8.x Database and user account
Be it for WordPress, or otherwise, creating the database and it’s user account is simple. Just log into MySql as root user, then :
CSS Grid Grouping into columns
I keep forgetting this, so time to blog it. It does not work on Firefox due to limited subgrid support. The Goal is a large grid if items which are grouped in 3 rows at a time, and wrapping after 3 columns.
Spamassassin – sa_learn from Junk and Spam folders
Assuming the users are vhost users, using postfix and mysql. Root home users emailas are in /var/mail/vhosts.
Tar a directory and all subdirectories
Create the tar backup file Test the tar file To copy it to another server To extract it To backup the mysql database To import the sql
Dovecot Sieve : Run Bash shell Scripts to query Mysql
3 simple scripts to determine Out Of Office emails for Dovecot First, the Sieve file Then the two Bash Scripts
Ubuntu 22.04 Find Files
Find a file. Find In Files (File containing text), recursively from current folder. Find in specific file types only. Count the number of lines in specific file by extension, including all sub directories.