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
| If incoming requests match... | |
| > Custom filter expression | |
| When incoming requests match... | |
| > Edit expression | |
| starts_with(http.request.uri.path, "/wp-content/") or starts_with(http.request.uri.path, "/wp-includes/") | |
| Then... |
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
| If incoming requests match... | |
| > Custom filter expression | |
| When incoming requests match... | |
| > Edit expression | |
| ( | |
| http.request.method in {"GET" "HEAD"} | |
| and not http.request.uri.path wildcard "/cdn-cgi/*" | |
| and not http.request.uri.path wildcard "/wp-admin*" |
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
| If incoming requests match... | |
| > Custom filter expression | |
| When incoming requests match... | |
| > Edit expression | |
| ( | |
| http.request.method in {"GET" "HEAD"} | |
| and not http.request.uri.path wildcard "/cdn-cgi/*" | |
| and not http.request.uri.path wildcard "/wp-admin*" |
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
| #!/bin/bash | |
| ## this script resets Git Updater cache and clears update transients | |
| ## useful when themes or plugins aren’t detecting available updates | |
| ## delete internal metadata cache | |
| wp option delete git_updater | |
| ## delete all transients including theme/plugin update checks | |
| wp transient delete --all |
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
| #!/bin/bash | |
| ## source ss-config ## | |
| source /var/www/ss-config | |
| ## source ss-functions ## | |
| source /var/www/ss-functions | |
| ## BELOW THIS RELIES ON SS-CONFIG AND SS-FUNCTIONS |
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 | |
| /** | |
| * Git Updater Overrides for WP.org repo. | |
| * | |
| * @package GU_Overrides | |
| * | |
| * Plugin Name: Git Updater Overrides for WP.org | |
| * Plugin URI: https://gist.github.com/afragen/763e57af7ddc5a40692fdf5d977f2902 | |
| * Description: Override WP.org updates for plugins and themes in favor of updates from Git Updater. | |
| * Version: 0.2.0 |
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: Anonymize bbPress | |
| * Description: bbPress anonymous modifications. | |
| * Version: 0.0.2 | |
| * Requires PHP: 5.4 | |
| */ | |
| /** | |
| * Changelog. |
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: Anonymize bbPress | |
| Plugin URI: https://gist.github.com/jessuppi/0663069e94af7f397510990ccd576a30 | |
| Description: Enables guest users to participate in bbPress forums without providing an email address or URL, and assigns randomized user names to every single post. | |
| Version: 1.0.0 | |
| Author: Birgir Erlendsson, Jesse Nickles | |
| License: GPLv3 | |
| License URI: https://www.gnu.org/licenses/gpl-3.0.html | |
| */ |
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
| #!/bin/bash | |
| FIFO="/path-to-ss_cmd.txt"; | |
| LIST="$(sort -u $FIFO)"; | |
| for CMD in $LIST; do | |
| $CMD | |
| done | |
| rm $FIFO; |
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 | |
| // Exec | |
| // call: do_action('ss_cmd', 'cmd1'); | |
| add_action('ss_cmd', function($cmd) { | |
| switch($cmd) { | |
| case 'cmd1': | |
| return shell_exec('cmd1'); | |
| break; | |
| case 'cmd2': |
NewerOlder