Skip to content

Instantly share code, notes, and snippets.

@wp-networks
wp-networks / index.html
Last active December 3, 2018 21:32
Parallax backgrounds with walk cycle
<div class="foreground"></div>
<div class="midground">
<div class="tuna"></div>
</div>
<div class="background">
</div>
@wp-networks
wp-networks / custom_config.inc
Last active July 18, 2018 22:02 — forked from centminmod/custom_config.inc
Custom Config options available for Centminmod.
# CENTMINMOD CUSTOM CONFIGURATIONS OPTIONS FILE
# PLEASE NOTE: This file serves as a file with all the possible options, NOT what should be used in a production enviornment!!!!
# https://centminmod.com
# Creating a custom_config.inc file it will override default setting for upgrades and software installs.
# Location: /etc/centminmod/custom_config.inc
EMAIL='' # Server notification email address enter only 1 address
PUSHOVER_EMAIL='' # Signup pushover.net push email notifications to mobile & tablets
CMGIT='https://github.com/centminmod/centminmod.git'
@wp-networks
wp-networks / devs.rb
Created June 19, 2018 23:53 — forked from luckydev/devs.rb
Types of Developers
# SeniorDev, AwesomeDev, NoviceDev
class SeniorDev
def do_some_old_stuff
puts "This is a piece of cake"
end
def method_missing(name, *args)
puts "Err.. What? #{name}??.. THAT IS IMPOSSIBLE! Leave me alone."
end
<?php
/*
Plugin Name: Wordpress Hostname Migration
Plugin URI: http://doublesharp.com/
Description: Functionality to ease in migration of Wordpress code and databases between environments.
Author: Justin Silver
Version: 1.0
Author URI: http://doublesharp.com
License: GPL2
*/
### 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
wp-networks / correct-cookie-domain.php
Created April 26, 2018 00:17 — forked from danielbachhuber/correct-cookie-domain.php
Correct the cookie domain when a custom domain is mapped to the site.
@wp-networks
wp-networks / wpmu-power-tools.php
Created November 2, 2015 23:07 — forked from Coopeh/wpmu-power-tools.php
WPMU Power Tools
<?php
/*
* Plugin Name: WPMU Power Tools
* Plugin URI: http://plugins.paidtoblog.com/wpmu-power-tools/
* 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/