Generate a private root key
openssl genrsa -des3 -out myCA.key 2048Generate a root certificate
| <?php | |
| /** | |
| * Plugin Name: Name Of The Plugin | |
| * Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates | |
| * Description: A brief description of the Plugin. | |
| * Version: The Plugin's Version Number, e.g.: 1.0 | |
| * Author: Name Of The Plugin Author | |
| * Author URI: http://URI_Of_The_Plugin_Author | |
| * License: A "Slug" license name e.g. GPL2 | |
| */ |
| iptables -A OUTPUT -p tcp -s 0/0 -d 10.0.0.0/8 -j DROP | |
| iptables -A OUTPUT -p tcp -s 0/0 -d 172.16.0.0/12 -j DROP | |
| iptables -A OUTPUT -p tcp -s 0/0 -d 192.168.0.0/16 -j DROP | |
| iptables -A OUTPUT -p tcp -s 0/0 -d 100.64.0.0/10 -j DROP | |
| iptables -A OUTPUT -p udp -s 0/0 -d 10.0.0.0/8 -j DROP | |
| iptables -A OUTPUT -p udp -s 0/0 -d 172.16.0.0/12 -j DROP | |
| iptables -A OUTPUT -p udp -s 0/0 -d 192.168.0.0/16 -j DROP | |
| iptables -A OUTPUT -p udp -s 0/0 -d 100.64.0.0/10 -j DROP | |
| iptables-save |
| /** | |
| * ADD FOLLOWING TO wp-config.php FILE | |
| * | |
| * For developers: WordPress debugging mode. | |
| * | |
| * Change this to true to enable the display of notices during development. | |
| * It is strongly recommended that plugin and theme developers use WP_DEBUG | |
| * in their development environments. | |
| * | |
| * For information on other constants that can be used for debugging, |
| <?php | |
| // backup database, compress and send to telegram | |
| // you may setup cronjob: | |
| // 0,30 * * * * /opt/cpanel/ea-php73/root/usr/bin/php -q /home/path/public_html/db2tg.php | |
| $bot_token = '123456789:xxxxxxxxxxxxxxxxx'; | |
| $chatid = '123456789'; | |
| $db_host = 'localhost'; | |
| $db_username = 'my_user'; |
| <?php | |
| if (!function_exists("ssh2_connect")) die("-error: function ssh2_connect doesn't exist"); | |
| function ssh2_debug($message, $language, $always_display) { | |
| printf("%s %s %s\n",$message,$language,$always_display); | |
| } | |
| function my_ssh_disconnect($reason, $message, $language) { | |
| printf("Server disconnected with reason code [%d] and message: %s\n", $reason, $message); | |
| } |
| <!-- | |
| // if you have a form in your page and want to submit the form using ajax | |
| // compatible with dynamically created forms. | |
| // no need to add your action url and form data to the ajax script | |
| // 0. add jQuery to your html file! | |
| // 1. add "ajax" class to the form. | |
| // 2. add the following script to your html file. | |
| --> | |
| <script> |