Entries Categorized as 'Technology'

How To Preserve Quotes In Bash Arguments

Author: , April 18th, 2022

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: , March 18th, 2022

How To Change The Outgoing Email Domain In MacOS

Author: , March 17th, 2022

When I sent email from my desktop Mac cron jobs, it went out with the full hostname as the domain, i.e.: root@demo.wyzaerd.com, when all I wanted was a simple root@wyzaerd.com for ease of deliverability and domain maint. Edit the mail configuration file main.cf:

Add/edit the myorigin value of $mydomain:

How To Reset The MySQL 5.5 Server root Password

Author: , March 16th, 2022

Had an old server, needed to get root.

For MySQL 5.7: https://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html 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: , March 16th, 2022

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 […]

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

Author: , February 23rd, 2022

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: , February 19th, 2022

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.: ORIGINAL:

MODIFY ONE […]

How To Prevent SSH From Prompting When The Host Is Unknown

Author: , January 26th, 2022

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 […]

How To Interpret The Httpful\Response Object

Author: , December 10th, 2021

I use the httpful library from https://phphttpclient.com 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: , December 7th, 2021

I needed to block email based on the Subject header. The solution is simple: Edit main.cf 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 […]