This file contains hidden or 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
[ | |
{ | |
"AllowedHeaders": [ | |
"*" | |
], | |
"AllowedMethods": [ | |
"GET", | |
"PUT", | |
"POST", | |
"HEAD", |
This file contains hidden or 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
# show php version i.e. 7.3.8 | |
php -v | |
# update brew to latest | |
brew update | |
# to show all php versions available i.e. [email protected] | |
brew search php | |
# install it |
This file contains hidden or 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
// color palette. | |
$palette: ( | |
primary: ( | |
400: #1bb1e4, | |
700: #4d84c8, | |
900: #7ea0c3, | |
), | |
secondary: ( | |
400: #a66aae, | |
700: #5f61a9, |
This file contains hidden or 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
/* CSS Snippets for Tax Toggle for WooCommerce. Add these to your CSS file or to your theme via Customizer. */ | |
/* Move down on left */ | |
#wcvat-toggle { | |
top: 90%; | |
} | |
/* Move to right side of screen */ | |
#wcvat-toggle { | |
left: unset; |
This file contains hidden or 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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
# If images not found on development site, load from production | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^wp-content/uploads/[^/]+/.+\.(jpe?g|jpg|png|gif)$ https://production.com/$0 [R=302,L] |
This file contains hidden or 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
<?php // don't copy this opening PHP tag if you are pasting in to functions.php | |
/** | |
* Change text strings for WooCommerce Tax Toggle | |
* | |
* Translate the text used in Tax Toggle plugin. | |
* Copy the code below to your theme functions.php file. | |
* | |
* @param string $translated_text Translated text. | |
* @param string $text Text to translate. |
This file contains hidden or 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
{ | |
"core":null, | |
"phpVersion": "7.1", | |
"plugins":[ | |
"WordPress/WooCommerce", | |
"." | |
], | |
"themes":[ | |
"WordPress/storefront" | |
], |
This file contains hidden or 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
# navigate to folder with gifs in it, then run this at CLI | |
# qulity is controlled by -b:v - lower the number the worse the quality | |
for i in *.gif; | |
do name=`echo "$i" | cut -d'.' -f1` | |
echo "$name" | |
ffmpeg -i "$i" -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -b:v 250K "${name}.mp4" | |
done |
This file contains hidden or 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
## Config | |
movefile.yml | |
.lando.yml | |
## Development | |
build | |
vendor | |
node_modules | |
package-lock.json | |
debug.log |
This file contains hidden or 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
{ | |
"templateParts": { | |
"header": { | |
"area": "header" | |
}, | |
"footer": { | |
"area": "footer" | |
} | |
}, | |
"settings": { |