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:50e87b5fb116b285cbbac96d26765f60
Created October 26, 2022 09:34
Playing with RGBA image background gradients
background: linear-gradient(to bottom right, rgba(55, 71, 79, 0.8), rgba(255, 196, 0, 0.2)), url()
background: linear-gradient(60deg, rgba(55, 71, 79, 0.7777485994397759) 30%, rgba(255, 255, 255, 0) 100%), url()
@jessuppi
jessuppi / anonymize-bbpress.php
Last active September 2, 2022 21:07 — forked from birgire/bbpmods_anonymous.php
WordPress plugin: BBPMods Anonymous
<?php
/**
* Plugin Name: Anonymize bbPress
* Description: bbPress anonymous modifications.
* Version: 0.0.2
* Requires PHP: 5.4
*/
/**
* Changelog.
<?php
/*
Plugin Name: Anonymize bbPress
Plugin URI: https://gist.github.com/jessuppi/0663069e94af7f397510990ccd576a30
Description: Enables guest users to participate in bbPress forums without providing an email address or URL, and assigns randomized user names to every single post.
Version: 1.0.0
Author: Birgir Erlendsson, Jesse Nickles
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/
<?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 / gist:d6ae9421a690c79dc6bb04d0847b5997
Created August 18, 2020 19:27
WP Engine wp-config.php example
<?php
# Database Configuration
define( 'DB_NAME', 'XXX' );
define( 'DB_USER', 'XXX' );
define( 'DB_PASSWORD', 'XXX' );
define( 'DB_HOST', '127.0.0.1' );
define( 'DB_HOST_SLAVE', '127.0.0.1' );
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', 'utf8_unicode_ci');
$table_prefix = 'wp_';
@jessuppi
jessuppi / gist:3356c3031281872eb85120020fca4daa
Last active September 10, 2020 20:21
SlickStack Bash Functions (Aliases) + Environment Variables
#!/bin/bash
####################################################################################################
#### SlickStack: Critical Bash Functions (Aliases) + Script Variables ##############################
####################################################################################################
## the below functions are hardcoded into every SlickStack script to ensure reliability ##
## this also speeds up processing times by avoiding repeated inline commands ##
## add-apt-repository alias flags ##
@jessuppi
jessuppi / gist:53880a878b4615e4353a60adf7d58ca9
Last active August 6, 2020 18:47
Complex Sed Replace Examples
## fix hyperlinks (but not media src as they are shared with production uploads folder) ##
# sed 's#href="https://$SITE_DOMAIN#href="https://$SITE_DOMAIN/staging#g' /tmp/staging.sql
# sed 's#href="http://$SITE_DOMAIN#href="https://$SITE_DOMAIN/staging#g' /tmp/staging.sql
# sed 's#href="//$SITE_DOMAIN#href="https://$SITE_DOMAIN/staging#g' /tmp/staging.sql
# sed "s#href='https://$SITE_DOMAIN#href='https://$SITE_DOMAIN/staging#g" /tmp/staging.sql
# sed "s#href='http://$SITE_DOMAIN#href='https://$SITE_DOMAIN/staging#g" /tmp/staging.sql
# sed "s#href='//$SITE_DOMAIN#href='https://$SITE_DOMAIN/staging#g" /tmp/staging.sql
## fix sources (mirrors to production uploads folder using Nginx alias so this is just for cleaner source code) ##
# sed 's#src="https://$SITE_DOMAIN#src="https://$SITE_DOMAIN/staging#g' /tmp/staging.sql
@jessuppi
jessuppi / gist:ab5517aa50b3bc83ac37abb8267e005b
Created August 3, 2020 22:45
Debconf prepare MySQL root password (variations)
## prepare root password for apt (PSA: sudo the shit out of these or it will fail) ##
#####sudo echo "mysql-community-server mysql-community-server/root-pass password ${DB_PASSWORD_ROOT}" | sudo debconf-set-selections
#####sudo echo "mysql-community-server mysql-community-server/re-root-pass password ${DB_PASSWORD_ROOT}" | sudo debconf-set-selections
#####sudo echo "mysql-community-server mysql-server/default-auth-override select Use Legacy Authentication Method (Retain MySQL 5.x Compatibility)" | sudo debconf-set-selections
# echo "mysql-community-server mysql-community-server/root-pass password ${DB_PASSWORD_ROOT}" | debconf-set-selections
# echo "mysql-community-server mysql-community-server/re-root-pass password ${DB_PASSWORD_ROOT}" | debconf-set-selections
# sudo debconf-set-selections <<< "mysql-community-server mysql-community-server/root-pass password ${DB_PASSWORD_ROOT}"
# sudo debconf-set-selections <<< "mysql-community-server mysql-community-server/re-root-pass password ${DB_PASSWORD_ROOT}"
# sudo
@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 / empty
Created March 2, 2020 21:49
Dummy File
## empty file ##