Skip to content

Instantly share code, notes, and snippets.

🙏
Saving WordPress from itself...

Jesse Nickles jessuppi

🙏
Saving WordPress from itself...
Block or report user

Report or block jessuppi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jessuppi
jessuppi / content
Created Oct 9, 2019
On Asking Consultants For Free Consultations.
View content
Year after year, more business goes online -- this includes shopping, marketing, and yes, consulting.
In certain ways, competition has increased, because there are more freelancers offering similar services. But in other ways, there is more opportunity than ever before for freelancers with quality services.
One issue that I've noticed getting "worse" in some respects is the number of clients who expect a "free" consultation from potential service providers; while sometimes this can be a fair request, in most cases it is not.
Allow me to explain:
Unlike salaried full-time employees, every minute you take from a consultant without paying him is money lost.
@jessuppi
jessuppi / blacklist.txt
Created Oct 7, 2019
Dummy Plugin Blacklists.txt
@jessuppi
jessuppi / query.php
Last active Oct 6, 2019
Different Ways to Query WordPress Posts
View query.php
<?php
$options = array(
'post_type' => 'person',
'posts_per_page' => 99,
'orderby' => 'date',
'order' => 'ASC',
'paged' => $paged,
);
$query = new WP_Query( $options );
if ( $query->have_posts() ) :
@jessuppi
jessuppi / default
Created Oct 4, 2019
Monit Nginx Server Block Rules
View default
#### MONIT PANEL ####
location /monit/ {
rewrite ^/monit/(.*) /$1 break;
proxy_ignore_client_abort on;
proxy_pass https://127.0.0.1:2812;
proxy_set_header Host $host;
proxy_redirect https://127.0.0.1:2812 /monit;
}
@jessuppi
jessuppi / variables
Last active Aug 7, 2019
Complete List Of WP-CLI Variables
View 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 Jun 25, 2019
Disable IPv6 Connections (Ubuntu Linux)
View sysctl.conf
## 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
@jessuppi
jessuppi / littlebizzy-reviews
Last active Jul 1, 2019
LittleBizzy Hosting Reviews (Verified Customers)
View littlebizzy-reviews
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.”
View gist:a7ae4243e677eaef336c8587b6186e9e
## 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
View 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 ##
@jessuppi
jessuppi / emergency.php
Last active Feb 19, 2018
WordPress Password Recovery Script
View emergency.php
<?php
/*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
You can’t perform that action at this time.