Skip to content

Instantly share code, notes, and snippets.

wp-networks / index.html
Last active Dec 3, 2018
Parallax backgrounds with walk cycle
View index.html
<div class="foreground"></div>
<div class="midground">
<div class="tuna"></div>
<div class="background">
wp-networks /
Last active Jul 18, 2018 — forked from centminmod/
Custom Config options available for Centminmod.
# PLEASE NOTE: This file serves as a file with all the possible options, NOT what should be used in a production enviornment!!!!
# Creating a file it will override default setting for upgrades and software installs.
# Location: /etc/centminmod/
EMAIL='' # Server notification email address enter only 1 address
PUSHOVER_EMAIL='' # Signup push email notifications to mobile & tablets
wp-networks / devs.rb
Created Jun 19, 2018 — forked from luckydev/devs.rb
Types of Developers
View devs.rb
# SeniorDev, AwesomeDev, NoviceDev
class SeniorDev
def do_some_old_stuff
puts "This is a piece of cake"
def method_missing(name, *args)
puts "Err.. What? #{name}??.. THAT IS IMPOSSIBLE! Leave me alone."
View wp-server-migration.php
Plugin Name: Wordpress Hostname Migration
Plugin URI:
Description: Functionality to ease in migration of Wordpress code and databases between environments.
Author: Justin Silver
Version: 1.0
Author URI:
License: GPL2
View gist:a1460c62518b82b2a644f4489dfde9c7
### BEGIN Network Panel Control
## for use with: define( 'DOMAIN_CURRENT_SITE', $_SERVER['HTTP_HOST'] );
## this has some gaps, but it gets the point accross
## was made for a WP installed at like my.example.tld
## obviously, some values likely need changing if you try this, eg. my|stage|templates
<IfModule rewrite_module>
#RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(?:/?wp-admin/network/.*)\ HTTP/ [NC]
wp-networks / correct-cookie-domain.php
Created Apr 26, 2018 — forked from danielbachhuber/correct-cookie-domain.php
Correct the cookie domain when a custom domain is mapped to the site.
View correct-cookie-domain.php
View wpmu-power-tools.php
* Plugin Name: WPMU Power Tools
* Plugin URI:
* Description: A few powerfull tools that every WPMU Admin should have.
* Author: Brian Freeman (aka MrBrian)
* Version: 0.7
/* Some sample snippet codes for PHP Executor (feel free to send in yours)

###W3TC MU-Plugins Install

  1. ####Add Apache Rewrite Rule -> .htaccess:

    • RewriteRule ^wp-content/plugins/w3-total-cache(/.*|)$ /wp-content/mu-plugins/w3-total-cache$1 [L,NC]
  2. ####Add WP-Config Option -> wp-config.php:

    • define('W3TC_DIR', dirname(FILE).'/wp-content/mu-plugins/w3-total-cache');
  3. ####Add w3tc plugin -> mu-plugins/:

  • Upload entire plugin to mu-plugins/w3-total-cache/