How To Preserve Quotes In Bash Arguments

Author: , Posted on Monday, April 18th, 2022 at 2:21:50pm

If you want to preserve quoting to pass shell arguments to a called command, use the four characters "$@" (including the double quotes) instead of the two characters $*

How To Disable Email Bounce Messages In Postfix

Author: , Posted on Friday, March 18th, 2022 at 9:34:32am

How To Change The Outgoing Email Domain In MacOS

Author: , Posted on Thursday, March 17th, 2022 at 9:55:22am

When I sent email from my desktop Mac cron jobs, it went out with the full hostname as the domain, i.e.:, when all I wanted was a simple for ease of deliverability and domain maint.

Edit the mail configuration file

Add/edit the myorigin value of $mydomain:

How To Reset The MySQL 5.5 Server root Password

Author: , Posted on Wednesday, March 16th, 2022 at 2:39:07pm

Had an old server, needed to get root.

For MySQL 5.7:

For some other v5.7 nodes, I had admin access via a different user’s login, so all I needed was this:

How To Fix Server Ownership When Files Have Been Altered By Mistake

Author: , Posted on Wednesday, March 16th, 2022 at 12:19:54pm

Situation: Newbie mistake, used copy-and-paste to create a script that used variables with the incorrect variable name, then ran chown -R / OUCH

Resolution: Since I had aa clone host nearby, I decided to export the remote root fs via NFS, mount it on the fouled nnode, and use find magic to repair.

Here are the steps:

Bad host is nodeB, and good host is nodeG ;-}

Step 1. On nodeG, prepare NFS:

Step 2. On nodeB, mount the resource from nodeG and use it to set the ownership locally on nodeB via find -exec chown:

How To Solve Grafana Error “failed to load its application files”

Author: , Posted on Wednesday, February 23rd, 2022 at 2:56:59pm

Try a newer browser before anything else!

I was using an older version of Safari on Mac and got this:

I switched to the latest version of FireFox and was fine.

How To Solve MySQL GPG Key Errors During yum update

Author: , Posted on Saturday, February 19th, 2022 at 9:58:30am

I went to perform a yum update and got the following error:

SOLUTION: Import the needed new key and manually edit the config files before retrying the yum update.

I had to edit two files: mysql-community-source.repo and mysql-community.repo

For 5.7 – add -2022 to the key name: i.e.:



Then re-run yum update.

How To Prevent SSH From Prompting When The Host Is Unknown

Author: , Posted on Wednesday, January 26th, 2022 at 1:53:30pm

If you are asked “Are you sure you want to continue connecting (yes/no)?” when trying to connect via SSH, then the remote host’s identification key has not yet been stored in your ~/.ssh/known_hosts file.

This then requires you to type the full string “yes” in order to proceed because the default value for ssh is StrictHostKeyChecking=ask.

To bypass this behavior (not recommended), you may add the -o StrictHostKeyChecking=no option to the command-line, for example:



How To Interpret The Httpful\Response Object

Author: , Posted on Friday, December 10th, 2021 at 12:41:09pm

I use the httpful library from

The website has not defined the Httpful\Response keys anyplace easy to find, so I have documented them here:

How To Block Email Using Subject Headers In Postfix

Author: , Posted on Tuesday, December 7th, 2021 at 12:05:44pm

I needed to block email based on the Subject header.

The solution is simple:

Edit as root and uncomment or add:

Next, creaate or edit /etc/postfix/header_checks as root and add the following line:

Finally, run sudo postfix reload

NOTE: Do NOT add the “i” after the regular expression! It is case-insensitive by default, and adding the “i” will break it!