Install Debian 11 and update
apt update && apt dist-upgrade -y && apt install libgthread curl ufw -y
If the only account is root, create a new account
adduser pia-gateway
usermod -aG sudo pia-gateway
su pia-gateway
import paramiko | |
import logging | |
import logging.handlers | |
import os | |
import time | |
import json | |
import sys | |
# Constants | |
USERNAME = 'root' |
function patricks_format_accessible_sale_price( $formatted_price, $regular_price, $sale_price ) { | |
// Only modify for logged-in users | |
if ( is_user_logged_in() ) { | |
$formatted_price = '<del> | |
<span class="screen-reader-text">' . esc_html__('Original price was:', 'woocommerce-accessible-sale-price') . '</span> | |
List Price: ' . ( is_numeric( $regular_price ) ? wc_price( $regular_price ) : $regular_price ) . | |
'</del> | |
<br> | |
<ins> | |
<span class="screen-reader-text">' . esc_html__('Current price is:', 'woocommerce-accessible-sale-price') . '</span> |
#!/bin/bash | |
# wp-core-update.sh | |
# | |
# This script iterates over each user directory in /home, recursively searches for wp-config.php files, | |
# and for each found file treats its containing directory as a WordPress installation. | |
# It uses WP-CLI (with --allow-root) to check for and update the WordPress core if an update is available. | |
# | |
# It supports a "--dry-run" flag. In dry-run mode, the script logs which sites need updating | |
# without executing the update. | |
# |
<?php //wp-content/mu-plugins/disable-auto-updates.php | |
/* | |
Plugin Name: Control Auto Updates (wp,plugins,themes) | |
Plugin URI: https://example.co | |
Description: Disables Auto Updates for plugins & themes, sets minor auto core update email notifications. | |
Version: 1.4 | |
Author: example co | |
AuthorURI: https://example.co | |
*/ |
Install Debian 11 and update
apt update && apt dist-upgrade -y && apt install libgthread curl ufw -y
If the only account is root, create a new account
adduser pia-gateway
usermod -aG sudo pia-gateway
su pia-gateway