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 | |
| # enhance_backup_sync.sh | |
| # | |
| # cPFence Team | https://cpfence.app | |
| # | |
| # Description: | |
| # This script synchronizes the Enhance backup server's /backups directory with a remote server | |
| # for disaster recovery (backup mode) or restores data from the remote server to the local server (restore mode). | |
| # | |
| # Usage: |
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
| { | |
| "_meta": { | |
| "target": "user", | |
| "name": "Română", | |
| "direction": "ltr", | |
| "iso": "ro" | |
| }, | |
| "affiliates": { | |
| "Account": "Account", | |
| "AffInvoiceStatusCannotChanged": "The status cannot be changed for selected affiliate invoices.", |
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
| SET @new_option_id := xxxxxxxxxxx; | |
| UPDATE wp_options | |
| SET option_id = (@new_option_id := @new_option_id + 1) | |
| WHERE option_id IN ( | |
| SELECT option_id | |
| FROM ( | |
| SELECT option_id | |
| FROM wp_options | |
| WHERE option_id = 0 | |
| GROUP BY option_id |
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
| // Use X-Forwarded-For HTTP Header to Get Visitor's Real IP Address | |
| if ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { | |
| $http_x_headers = explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] ); | |
| $_SERVER['REMOTE_ADDR'] = $http_x_headers[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
| # List the files | |
| find -E . -type f -regex ".*-[[:digit:]]{2,4}x[[:digit:]]{2,4}(@2x)?.(jpg|jpeg|png|eps|gif)" | |
| # DANGER! Delete the files | |
| find -E . -type f -regex ".*-[[:digit:]]{2,4}x[[:digit:]]{2,4}(@2x)?.(jpg|jpeg|png|eps|gif)" -delete | |
| # If your OS doesn't support -E (tip from https://github.com/quasel) | |
| find . -type f -regextype posix-extended -regex ".*-[[:digit:]]{2,4}x[[:digit:]]{2,4}(@2x)?.(jpg|jpeg|png|eps|gif)" | |
| # Improved with the help of https://github.com/markhowellsmead |
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
| # TO BE ADDED TO location.main-before | |
| ################################################################################################### | |
| # Rocket-Nginx | |
| # | |
| # Rocket-Nginx is a NGINX configuration to speedup your WordPress | |
| # website with the cache plugin WP-Rocket (http://wp-rocket.me) | |
| # | |
| # Author: Maxime Jobin | |
| # URL: https://github.com/maximejobin/rocket-nginx | |
| # |
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: Hide Plugins | |
| * Plugin URI: https://premium.wpmudev.org/ | |
| * Description: Hides specific plugins from Admin Menus & Plugins List | |
| * Version: 1.0.0 | |
| * Author: Konstantinos Xenos @ WPMUDEV | |
| * Author URI: https://premium.wpmudev.org/ | |
| * License: GPLv2 or later |
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
| //* Unregister widgets areas & layouts | |
| unregister_sidebar( 'sidebar-alt' ); | |
| genesis_unregister_layout( 'content-sidebar-sidebar' ); | |
| genesis_unregister_layout( 'sidebar-sidebar-content' ); | |
| genesis_unregister_layout( 'sidebar-content-sidebar' ); | |
| //* Register Home Slider widget area | |
| genesis_register_sidebar( array( | |
| 'id' => 'home-slider', |
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
| SELECT * FROM `wp_options` WHERE option_name = 'cron' |
NewerOlder