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
| # Disable display_errors for all PHP versions on RunCloud | |
| # This script appends 'display_errors = false' to each version's php.ini | |
| # and restarts the matching PHP-FPM services. | |
| # Run the full block as a single command to apply changes in one go: | |
| # | |
| # bash <(curl -s https://gist.githubusercontent.com/yourname/gistid/raw/disable-display-errors-runcloud.sh) | |
| # | |
| # Useful for production environments to suppress PHP errors from showing publicly. | |
| # Append 'display_errors = false' to each PHP version's ini file |
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
| # Update WordPress and enable auto updates | |
| # Install and activate the Akismet plugin | |
| wp plugin install akismet --activate | |
| # Deactivate the 'disable-wordpress-updates' plugin | |
| wp plugin deactivate disable-wordpress-updates | |
| # Update all plugins | |
| wp plugin update --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
| /** | |
| * Prevent update notification for plugin - | |
| * http://www.thecreativedev.com/disable-updates-for-specific-plugin-in-wordpress/ | |
| * Add to the core plugin file | |
| */ | |
| function disable_plugin_updates( $value ) { | |
| if ( isset($value) && is_object($value) ) { | |
| $plugin_file_name = basename(__DIR__) . '/' . basename(__FILE__); | |
| if ( isset( $value->response[$plugin_file_name] ) ) { | |
| unset( $value->response[$plugin_file_name] ); |
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 | |
| /** | |
| * Easy theme overrides for when updating a site with a build process in WordPress | |
| * @author Dean Oakley | |
| * http://thriveweb.com.au | |
| * Add overrides.css and overrides.js to your theme directory and edit away | |
| */ | |
| add_action("wp_enqueue_scripts", "theme_overrides", 20); |
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 | |
| /************************************************************************* | |
| php easy :: whois lookup script | |
| ========================================================================== | |
| Author: php easy code, www.phpeasycode.com | |
| Web Site: http://www.phpeasycode.com | |
| Contact: webmaster@phpeasycode.com | |
| *************************************************************************/ | |
| $domain = $_GET['domain']; |
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
| # Disable display_errors for all PHP versions on ServerPilot | |
| # This script appends 'display_errors = false' to each version's php.ini | |
| # and restarts the corresponding PHP-FPM services. | |
| # Run the full block as a single command to apply changes in one go: | |
| # | |
| # bash <(curl -s https://gist.githubusercontent.com/yourname/gistid/raw/disable-display-errors-serverpilot.sh) | |
| # | |
| # Useful for production environments to suppress PHP error output in the browser. | |
| # Append 'display_errors = false' to each PHP version's ini file |