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 / gist:6bc3452fba512389637671d55d01a759
Created January 11, 2020 08:36
SSH Authorization (Boot Script Example From Vultr)
#!/bin/sh
# NOTE: This is an example that sets up SSH authorization. To use it, you'd need to replace "ssh-rsa AA... youremail@example.com" with your SSH public.
# You can replace this entire script with anything you'd like, there is no need to keep it
mkdir -p /root/.ssh
chmod 600 /root/.ssh
echo ssh-rsa AA... youremail@example.com > /root/.ssh/authorized_keys
@jessuppi
jessuppi / gist:04fbdc74b20cbe57f627f4611715c041
Last active April 13, 2021 07:54
SEO Referral Spam Domains (List)
## block these spam domains from your referrer analytics and/or using firewall rules ##
## the majority of these abusive bots are from China (but not all of them) ##
adelachrist.top
ammgm.org
anti-crisis-seo.com
barbarahome.top
bavsac.com
briankatrine.top
blogking.top
@jessuppi
jessuppi / functions
Created November 21, 2019 20:55
Useful Bash Script Functions (Command Aliases)
## critical functions (aliases) for this script to function ##
apt () { command DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' /usr/bin/apt -q --yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" "$@"; }
wget () { command wget --no-check-certificate --no-cache --no-cookies --tries=3 --timeout=15 "$@"; }
cp () { command cp -R -f -d --no-preserve=mode,ownership "$@"; }
rm () { command rm -R -f "$@"; }
mkdir () { command mkdir -p "$@"; }
unzip () { command unzip -o "$@"; }
@jessuppi
jessuppi / gist:510398e634efa36e55e9af46025d0d1f
Created October 22, 2019 13:26
Embed recent video from YouTube channel
https://stackoverflow.com/questions/39301196/embedding-most-recent-youtube-video-with-channel-id
@jessuppi
jessuppi / content
Created October 9, 2019 11:30
On Asking Consultants For Free Consultations.
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 October 7, 2019 19:54
Dummy Plugin Blacklists.txt
;; empty ;;
@jessuppi
jessuppi / query.php
Last active October 6, 2019 10:22
Different Ways to Query WordPress Posts
<?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 October 4, 2019 12:03
Monit Nginx Server Block Rules
#### 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 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