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 / 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 / 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 / blacklist.txt
Created October 7, 2019 19:54
Dummy Plugin Blacklists.txt
;; empty ;;
@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 / readme.txt
Last active November 18, 2019 21:28
WordPress Plugin Example (readme.txt)
=== Plugin Name ===
Contributors: littlebizzy
Donate link: https://www.patreon.com/littlebizzy
Tags: five, keywords, separated, by, commas
Requires at least: 4.4
Tested up to: 4.9
Requires PHP: 7.2
Multisite support: No
Stable tag: 1.2.3
@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: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 / empty
Created March 2, 2020 21:49
Dummy File
## empty file ##
@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 / keybase.md
Created April 17, 2020 16:48
Keybase Verification

Keybase proof

I hereby claim:

  • I am jessuppi on github.
  • I am jessuppi (https://keybase.io/jessuppi) on keybase.
  • I have a public key ASBM8UruRpHyciuqdbFZ4e-MSobAfGRdujAbFLkXHCl_zAo

To claim this, I am signing this object: