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
@jesugmz
jesugmz / solve-load-pubkey-id_rsa-invalid-format.md
Last active December 2, 2022 23:35
Solve load pubkey "/root/.ssh/id_rsa": invalid format

OpenSSH 8.3p1 introduces the need of having a public SSH key otherwise is gonna show the warning

load pubkey "/root/.ssh/id_rsa": invalid format

# ssh -V
OpenSSH_8.3p1, OpenSSL 1.1.1g  21 Apr 2020

To supress this message we can put in place our SSH public key or generate it from our private key with:

@rkalkani
rkalkani / get-public-ip.md
Last active April 11, 2025 12:56
Get public IP address used by your machine to connect to the internet

Get Public IP

DNS

Google

dig o-o.myaddr.l.google.com txt @ns1.google.com +short
# OR
nslookup -type=txt o-o.myaddr.l.google.com ns1.google.com
@ziadoz
ziadoz / mysql_install.sh
Created June 8, 2020 16:45
MySQL 8 Installation - Ubuntu 18.04 / 20.04 LTS
#!/usr/bin/env bash
password="root"
echo PURGE | sudo debconf-communicate mysql-community-server
sudo apt purge mysql-client mysql-server
sudo debconf-set-selections <<< "mysql-community-server mysql-community-server/root-pass password $password"
sudo debconf-set-selections <<< "mysql-community-server mysql-community-server/re-root-pass password $password"
sudo debconf-set-selections <<< "mysql-community-server mysql-server/default-auth-override select Use Legacy Authentication Method (Retain MySQL 5.x Compatibility)"
@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:

@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 / 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 / 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"