Skip to content

Instantly share code, notes, and snippets.

View jessuppi's full-sized avatar
❤️
let the bodies hit the floor

Jesse Nickles jessuppi

❤️
let the bodies hit the floor
View GitHub Profile
@jessuppi
jessuppi / variables
Last active August 7, 2019 15:47
Complete List Of WP-CLI Variables
## set WP-CLI variables ##
WP_CLI_CACHE_DIR="/var/www/cache/.wp-cli"
WP_CLI_CONFIG_PATH="/var/www/meta/wp-cli.yml"
WP_CLI_CUSTOM_SHELL="/bin/bash"
WP_CLI_DISABLE_AUTO_CHECK_UPDATE="true"
WP_CLI_PACKAGES_DIR="/tmp"
# WP_CLI_PHP=""
# WP_CLI_PHP_ARGS=""
# WP_CLI_SSH_PRE_CMD=""
WP_CLI_STRICT_ARGS_MODE="false"
@jessuppi
jessuppi / sysctl.conf
Created June 25, 2019 08:13
Disable IPv6 Connections (Ubuntu Linux)
## disable ipv6
## after saving or editing this file
## reload settings with: sudo sysctl -p
## confirm with: cat /proc/sys/net/ipv6/conf/all/disable_ipv6
# net.ipv6.conf.all.disable_ipv6 = 1
# net.ipv6.conf.default.disable_ipv6 = 1
# net.ipv6.conf.lo.disable_ipv6 = 1
# net.ipv6.conf.eth0.disable_ipv6 = 1
@TanvirAmi
TanvirAmi / woocommerce.css
Created March 24, 2019 21:30
Latest woocommerce styling for adios
.woocommerce del,
.woocommerce-page del {
color: #abaeaf;
}
.woocommerce ins,
.woocommerce-page ins {
color: #272b2b;
text-decoration: none;
}
@jessuppi
jessuppi / littlebizzy-reviews
Last active July 1, 2019 14:25
LittleBizzy Hosting Reviews (Verified Customers)
LittleBizzy started out as a consulting service by founder Jesse Nickles for WordPress clients looking to speed up and secure their website. Several of these clients were from oDesk (Upwork), or referrals, and beyond, as well as direct customers that are still hosted with us today; below is a mix of real reviews (Google them!) from the past few years.
“Hands down one of the best partners we’ve worked with in our businesses. Can’t speak more highly of the experience we’ve had with LittleBizzy.”
— Cyrus, United States
“Jesse migrated and optimised my page load times and got them from around 10 seconds to 1 second. He totally exceeded my expectations and even suggested further improvements to my page load speeds. Within 24 hours of hiring Jesse much of the work was complete and I found that I was the only real bottleneck. A rare find, thanks.”
@jessuppi
jessuppi / gist:a7ae4243e677eaef336c8587b6186e9e
Created July 13, 2018 18:54
Sed search/replace examples
## replace entire line containing string with new line content ##
sed -i '/error_log/c\error_log = /var/www/logs/error.log' /etc/php/7.2/fpm/php-fpm.conf
@lukecav
lukecav / functions.php
Created June 29, 2018 19:04
Disable the “Connect your store to WooCommerce.com to receive extensions updates and support.” admin notice from WooCommerce
add_filter( 'woocommerce_helper_suppress_admin_notices', '__return_true' );
@sajdoko
sajdoko / Theme_Customization_API.php
Created June 26, 2018 15:46
Wordpress Customizer API Sanitization Examples
<?php
///////////////////////////////
// HOW TO SANITIZE RADIO BOX //
///////////////////////////////
function theme_slug_customizer($wp_customize) {
//your section
$wp_customize->add_section(
'theme_slug_customizer_your_section',
array(
'title' => esc_html__('Your Section', 'theme_slug'),
#!/bin/bash -e
clear
echo "============================================"
echo "Instalador de Wordpress"
echo "============================================"
echo "Host do Banco de dados: "
read -e dbhost
echo "Nome do Banco de dados: "
read -e dbname
echo "Usúario do Banco de dados: "
@jessuppi
jessuppi / install-redis
Created May 21, 2018 08:54
Install Redis
## install redis-server ##
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' /usr/bin/apt-get -q --yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install redis-server
## install php-redis ##
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' /usr/bin/apt-get -q --yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install php-redis
## delete tmp files ##
rm -R -f /tmp/redis-conf.txt /tmp/redis.conf
## download latest versions ##
@nickfox-taterli
nickfox-taterli / small_wp.sh
Last active April 3, 2021 10:34
Gullo.me 128MB VPS WordPress Install Script
apt-get update
systemctl disable [email protected]
systemctl disable [email protected]
apt-get -y remove --purge rsyslog
apt-get -y install ca-certificates dash inetutils-syslogd
rm -f /bin/sh
ln -s dash /bin/sh
#chsh -s /bin/dash
invoke-rc.d inetutils-syslogd stop
for file in /var/log/*.log /var/log/mail.* /var/log/debug /var/log/syslog