mysql -u root -p
SHOW DATABASES;
SHOW VARIABLES;
Credit: laravel/valet#296 (comment)
IMPORT valet's CA to Firefox's certificate Authorities
~/.config/valet/CA/
> LaravelValetCASelfSigned.pem
CMD + SHIFT + F
-*.css,-*.scssc,-node_modules
From: https://www.codedodle.com/convert-jpegs-and-pngs-to-webps.html https://www.codedodle.com/convert-jpegs-and-pngs-to-webps.html
# Convert PNGs
find . -iname "*.png" -print0 | xargs -0 -n 1 -P 0 -I '{}' cwebp '{}' -short -q 90 -alpha_q 100 -m 6 -o '{}'.webp
# Convert JPGs
find . \( -iname "*.jpg" -o -iname "*.jpeg" \) -print0 | xargs -0 -n 1 -P 0 -I '{}' cwebp -short -q 80 '{}' -o '{}'.webp
Switch from latest PHP (might be 8.2) to 7.4
brew unlink php && brew link [email protected] --force --overwrite && php -v
Switch from PHP 7.4 to latest PHP (might be 8.2)
brew unlink [email protected] && brew link php --force --overwrite && php -v
Check the PHP version with
php -v
Install Husky from https://typicode.github.io/husky/get-started.html
yarn add --dev husky
# Add pinst ONLY if your package is not private
yarn add --dev pinst
In the wp-content/themes/your-theme/.husky
folder add a file called pre-commit
. Inside pre-commit type: