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 | |
/* | |
* Credits: https://chirag.sh | |
*/ | |
add_hook('AdminClientServicesTabFields', 1, function($vars) { | |
$serviceid = $vars['id']; | |
$command = 'GetClientsProducts'; |
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/sh | |
# | |
# Please paste the output of this script when asking for installation related support on CyberPanel Forum | |
# Link: https://forums.cyberpanel.net/ | |
# | |
clear; clear | |
echo | |
echo "Starting installation fault script" | |
echo Data: `date` |
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
Here |
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
import os | |
import time | |
import shutil | |
# Declare paths below | |
# "{dir}": {OPTIONS} | |
# TYPES: | |
# 1: Files only | |
# 2: Folders only | |
# 3: Both |
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
import sendgrid | |
import os | |
import time | |
from sendgrid.helpers.mail import * | |
#import rotate | |
# Declare paths below | |
dirList = { | |
"/home/dir1":31, | |
"/home/dir2":4 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
#Expire Header | |
<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf)$"> | |
ExpiresDefault "access plus 2 hours" | |
</FilesMatch> | |
or | |
# Expire images header | |
ExpiresActive On | |
ExpiresByType image/gif A2592000 | |
ExpiresByType image/png A2592000 | |
ExpiresByType image/jpg A2592000 |
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
// Don't reveal username when password is incorrect but username is correct. | |
function override_login_error(){ | |
return '<strong>ERROR</strong>: Incorrect username or password.'; | |
} | |
add_filter( 'login_errors', 'override_login_error' ); |
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
// Enable Auto Update for WordPress Core. | |
define( 'WP_AUTO_UPDATE_CORE', true ); |