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
# Credits: https://stevegrunwell.com/blog/keeping-wordpress-under-version-control-with-git/ | |
# ADD THIS IN YOUR UPLOADS DIRECTORY | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule (.*) http://{SITE_URL}/wp-content/uploads/$1 | |
</IfModule> |
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
if ! type "brew" > /dev/null; then | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
brew install git cask brew-cask-completion && | |
brew cask install vagrant virtualbox && | |
vagrant plugin install vagrant-berkshelf vagrant-hostmanager vagrant-hostsupdater vagrant-omnibus vagrant-share vagrant-vbguest; |
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
#!/bin/bash | |
# cd into the directory with the images you want to resize then run this. | |
# install slugify with brew install slugify | |
mkdir resized | |
sips -Z 1920 -s formatOptions 65 -s format jpeg * --out resized/ | |
slugify -acdtu resized/* |
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
<?php | |
include $_SERVER['DOCUMENT_ROOT'].'/wp-content/plugins/advanced-custom-fields-pro/acf.php'; | |
include $_SERVER['DOCUMENT_ROOT'].'/wp-content/plugins/advanced-custom-fields-pro/admin/install.php'; | |
$acf_admin = new acf_admin_install(); | |
$updates = acf_get_db_updates(); | |
$message = ''; |
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
<?php | |
$pro_license = maybe_unserialize(base64_decode(get_option('acf_pro_license'))); | |
if (!$pro_license || $pro_license['url'] != home_url()) { | |
$save = array( | |
'key' => 'license_here', | |
'url' => home_url() | |
); | |
$save = maybe_serialize(base64_encode($save)); |
NewerOlder