Author: Gavin Simpson
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.
A Nightmare called Afrihost
And now for something completely different….. I just want to fill you in on what a rip off Afrihost is, and how they are either the most incompetant service provider on the planet, or as corrupt and crooked a company as you can get. Or perhaps everyone at Afrihost is simply dumb as nails…. who…
Using AJAX in WordPress
In the constructor of your PHP class add the following In your enqueue function add the localize script function so you have a variable to use in the js file to call admin-ajax.php Then add the callback functions to the same class Then in your js file add the following, assuming you have an element…
Creating a WordPress Class with Backend and Frontend functionality
Firstly, a bare bones PHP class. Add this in it’s own file, eg mynewclass.php, and include it in functions.php Now a slightly more sophisticated one to add an admin menu item and page, with page tabs.