Command | Key |
---|---|
Align colon, arrow, comments (Better Align) | Alt + A |
Switch from latest PHP (might be 8.2) to 7.4
brew unlink php && brew link php@7.4 --force --overwrite && php -v
Switch from PHP 7.4 to latest PHP (might be 8.2)
brew unlink php@7.4 && brew link php --force --overwrite && php -v
Check the PHP version with
php -v
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
- Template From: https://natelandau.com/my-mac-osx-bash_profile/
- Colors from
CMD + SHIFT + F
-*.css,-*.scssc,-node_modules
Credit: laravel/valet#296 (comment)
IMPORT valet's CA to Firefox's certificate Authorities
- Firefox > Preferences
- Privacy & Security > View Certificates
- Authorities > Import
- CMD + SHIFT + G
~/.config/valet/CA/
>LaravelValetCASelfSigned.pem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.savjee.be/2016/06/Deploying-website-to-ftp-or-amazon-s3-with-BitBucket-Pipelines/ | |
# https://github.com/git-ftp/ | |
# | |
# If using plain FTP, switch sftp to ftp and remove --insecure flag | |
# | |
# $VARIABLES: These are bitbucket repo variables. Set under Your Bitbucket Repo > Settings > Repository variables | |
# | |
# $SFTP_HOST example: sftp://myhostnamehere/public_html/staging | |
# | |
# --insecure flag: Set due to error "curl failed to verify the legitimacy of the server and therefore could not |
NewerOlder