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 | |
| /* | |
| Plugin Name: Zing ACF Auto Sync | |
| Plugin URI: | |
| Description: Plugin that automatically syncs the database with local json for .test urls | |
| Version: 20180419 | |
| Author: Noah Duncan <[email protected]> | |
| */ | |
| /* Put in /wp-content/mu-plugins/zing-acf-auto-sync/zing-acf-auto-sync.php if you want as a plugin */ |
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
| function gcleanup () | |
| { | |
| # default to local cleanup | |
| loc=true | |
| OPTIND=1 | |
| while getopts "ahlr" opt; do | |
| case "$opt" in | |
| a) # delete both | |
| rem=true; |
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
| alias iphp="php -d auto_prepend_file=~/.phpinitscript.php -a" |
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
| function getQueryParams(qs) { | |
| qs = qs.split('+').join(' '); | |
| var params = {}; | |
| var tokens; | |
| var re = /[?&]?([^=]+)=([^&]*)/g; | |
| while (tokens = re.exec(qs)) { | |
| params[decodeURIComponent(tokens[1])] = decodeURIComponent(tokens[2]); | |
| } |
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
| swiftmailer: | |
| transport: smtp | |
| host: localhost | |
| port: 1025 | |
| username: null | |
| password: null | |