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 / 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 / mysql_secure.sh
Created September 18, 2017 07:17 — forked from Mins/mysql_secure.sh
Automating mysql_secure_installation
#!/bin/bash
aptitude -y install expect
// Not required in actual script
MYSQL_ROOT_PASSWORD=abcd1234
SECURE_MYSQL=$(expect -c "
set timeout 10
@jessuppi
jessuppi / install-monit
Last active October 15, 2017 09:27
Install Monit 5.23 (Ubuntu 16.04)
#!/bin/bash
###########################################
#### Install Monit 5.23 (Ubuntu 16.04) ####
###########################################
#### binaries list: https://mmonit.com/monit/dist/binary/
#### downloads: https://bitbucket.org/tildeslash/monit/downloads/
## install outdated repo version ##
@jessuppi
jessuppi / nginx-extras
Last active November 15, 2017 04:51
Replace Nginx with Nginx-Extras (Ubuntu 16.04)
#!/bin/bash
## remove nginx install (purge not needed) ##
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" remove nginx
## update repo cache ##
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" update
## ensure nginx mainline (dev) branch is default ##
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" add-apt-repository ppa:nginx/development
@jessuppi
jessuppi / admin-notices.php
Last active June 4, 2018 20:54
Recommended Plugins Notice (Dismissable + Recurring)
<?php
// Subpackage namespace
namespace LittleBizzy\HeaderCleanup;
/**
* Admin Notices class
*
* @package WordPress
* @subpackage Admin Notices
@jessuppi
jessuppi / emergency.php
Last active February 19, 2018 17:36
WordPress Password Recovery Script
<?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
@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 ##
@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
@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 / 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