Skip to content

Instantly share code, notes, and snippets.

@wp-networks
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>
<div class="background">
</div>
@wp-networks
wp-networks / custom_config.inc
Last active Jul 18, 2018 — forked from centminmod/custom_config.inc
Custom Config options available for Centminmod.
View custom_config.inc
# 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 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"
end
def method_missing(name, *args)
puts "Err.. What? #{name}??.. THAT IS IMPOSSIBLE! Leave me alone."
end
View wp-server-migration.php
<?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
*/
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
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
<?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)
View w3tc-mu.md

###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/