Remove Aldente configurations

brew brew uninstall --cask aldente
rm -rf ~/Library/Application\ Support/Aldente
rm -rf ~/Library/Caches/com.apphousekitchen.aldente-pro
rm ~/Library/Preferences/com.apphousekitchen.aldente-pro_stats.sqlite3
rm ~/Library/Preferences/com.apphousekitchen.aldente-pro.plist
sudo rm /Library/PrivilegedHelperTools/com.apphousekitchen.aldente-pro.helper
sudo rm /Library/LaunchDaemons/com.apphousekitchen.aldente-pro.helper.plist

Remove Chrome configurations

rm -rf ~/Library/Google
rm -rf ~/Library/Application\ Support/Google
rm -rf ~/Library/Caches/Google
rm -rf ~/Library/Preferences/com.google.*

Remove Firefox configurations

rm -rf ~/Library/Mozilla
rm -rf ~/Library/Application\ Support/Firefox
rm -rf ~/Library/Application\ Support/Mozilla
rm -rf ~/Library/Caches/Firefox
rm -rf ~/Library/Preferences/org.mozilla*

Remove Slack configurations

rm -rf ~/Library/Application\ Support/Slack/
rm -rf ~/Library/Containers/com.tinyspeck.slackmacgap/
rm -rf ~/Library/Preferences/com.tinyspeck.slackmacgap.plist
rm -rf ~/Library/Saved\ Application\ State/com.tinyspeck.slackmacgap.savedState
rm ~/Library/Safari/LocalStorage/slack

A fake Apache Userdir on Ubuntu

Change your_username by your username.

cd /home/your_username
mkdir Sites
cd /var/www/html
sudo ln -s /home/your_username/Sites your_username

Go to the user site:

http://localhost/your_username

Extend the SSH connection timeout

sudo nano "ClientAliveCountMax 2" >> /etc/ssh/sshd_config
sudo nano "ClientAliveInterval 120" >> /etc/ssh/sshd_config

Configure PHP 8 for WordPress on macOS

echo "pcre.jit=0" >> /opt/homebrew/etc/php/8.1/php.ini
brew services restart php
sudo apachectl restart

In wp-config.php configure DB_HOST as 127.0.0.1 =)

Create a MySQL user on macOS

USE mysql;
CREATE USER 'your_username'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_password';
GRANT ALL PRIVILEGES ON * . * TO 'your_username'@'localhost';
FLUSH PRIVILEGES;

Install MySQL on macOS

brew install mysql
brew services start mysql
mysql -uroot