Skip to content

Instantly share code, notes, and snippets.

View LimeCuda's full-sized avatar

LimeCuda LimeCuda

View GitHub Profile
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="Untitled-Page%201" viewBox="0 0 35 48" version="1.1" xml:space="preserve" x="0" y="0" width="35" height="48" background-color="#ffffff00"><g id="Layer%201"><path d="M10.08 16.23L7.71 19.09C7.42 19.44 6.83 19.65 6.38 19.56L5.62 19.4C5.18 19.3 5.09 19.48 5.41 19.8L6.68 21.02C7.01 21.33 7.45 21.26 7.67 20.87L10.21 16.31C10.43 15.92 10.37 15.88 10.08 16.23ZM29.26 18.95L14.17 18.95C13.9 18.95 13.67 19.17 13.67 19.45 13.67 19.72 13.9 19.95 14.17 19.95L29.26 19.95C29.53 19.95 29.76 19.72 29.76 19.45 29.76 19.17 29.53 18.95 29.26 18.95ZM10.08 25.53L7.71 28.39C7.42 28.74 6.83 28.95 6.38 28.86L5.62 28.7C5.18 28.61 5.09 28.79 5.41 29.1L6.68 30.32C7.01 30.63 7.45 30.56 7.67 30.17L10.21 25.62C10.43 25.22 10.37 25.18 10.08 25.53ZM29.26 28.25L14.17 28.25C13.9 28.25 13.67 28.47 13.67 28.75 13.67 29.03 13.9 29.25 14.17 29.25L29.26 29.25C29.53 29.25 29.76 29.03 29.76 28.75 29.76 28.47 29.53 28.25 29.26 28.25ZM10.08 34.83L7.71 37.7C7.42 38.05
Order Logistics Management (box with circling boxes)
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="Untitled-Page%201" viewBox="0 0 99 104" version="1.1" xml:space="preserve" x="0" y="0" width="99" height="104" background-color="#ffffff00"><g id="Layer%201"><path d="M47.99 11.86L81.3 30.89 47.78 50.25 14.48 31.21 47.99 11.86ZM81.3 30.89L81.68 69.59 48.16 88.95 47.78 50.25 81.3 30.89ZM47.78 50.25L48.16 88.95 14.86 69.91 14.48 31.21 47.78 50.25Z" stroke="#484f59" stroke-width="3" fill="none"/><path d="M10.07 94.46C9.55 94.4 9.06 94.33 8.58 94.23L8.58 94.23M5.9 93.27C5.11 92.86 4.41 92.33 3.81 91.7 -0.94 86.72 1.35 76.09 8.77 63.64L8.77 63.64M9.5 62.43C9.76 62.01 10.03 61.59 10.3 61.16L10.3 61.16" stroke="#484f59" stroke-width="3" fill="none"/><path d="M89.37 26.46C89.21 26.93 89.05 27.4 88.88 27.88L88.88 27.88M87.74 30.73C83.11 41.41 73.59 54.46 60.76 66.71 50.02 76.96 38.83 84.86 29.08 89.58L29.08 89.58M27.69 90.24C27.23 90.45 26.77 90.65 26.32 90.85L26.32 90.85" strok
<div id="home-mobile-ad" class="ad-for-mobile">
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML Ad</title>
<link href='http://fonts.googleapis.com/css?family=Oswald:400,700,300' rel='stylesheet' type='text/css'>
</head>
@LimeCuda
LimeCuda / ad-code.php
Created February 16, 2016 17:08
code for the code that goes on single posts
add_action( 'genesis_entry_header', 'single_post_after_title_ad', 20 );
function single_post_after_title_ad() {
if( is_singular('post') ) { ?>
<div id="home-mobile-ad" class="ad-for-mobile">
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML Ad</title>
@LimeCuda
LimeCuda / widget-ad-code-home.php
Created February 16, 2016 17:09
Code used on homepage for Ad
<div id="home-mobile-ad" class="ad-for-mobile">
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML Ad</title>
<link href='http://fonts.googleapis.com/css?family=Oswald:400,700,300' rel='stylesheet' type='text/css'>
</head>
<?php
$ahnheader = file_get_contents('https://www.ahn.org/themes/wpahs_theme/header_output.php');
echo $ahnheader;
?>
@LimeCuda
LimeCuda / reverse-proxy.php
Last active December 23, 2020 02:53
A simple WordPress plugin to rewrite the URLs for content that is requested via a Reverse Proxy https://fewerthanthree.com/tutorial/wordpress-multisite-reverse-proxy-setup-wpengine/
<?php
/**
* @package Reverse Proxy
*/
/*
Plugin Name: Reverse Proxy
Plugin URI: https://limecuda.com/
Description: Reverse proxy setup for a WordPress multisite in subdirectory mode
Version: 1.1
Author: Josh Mallard
@LimeCuda
LimeCuda / fastly.vcl
Last active October 12, 2016 21:37
This is the VCL that is generated from all our settings. See the VCL on your service by clicking the "Show VCL" in dropdown http://screencast.com/t/U52i3zaC https://fewerthanthree.com/tutorial/wordpress-multisite-reverse-proxy-setup-wpengine/
pragma optional_param default_ssl_check_cert 1;
pragma optional_param customer_id "####HIDDEN####";
C!
W!
# Backends
backend F_Port_443_WordPress_Endpoint {
.first_byte_timeout = 15s;
.connect_timeout = 1s;
.max_connections = 200;

Client Team - First Round - ASAP

  • Add CNAME for admin.originalsite.com to point to global.prod.fastly.net
  • Add Reverse Proxy directive to Virtual Host on finalsite.com

Client Team - Second Round

  • Set Blog content addition freeze
  • Make sure blog is excluded from GeoIP rules

LimeCuda Pre-Launch List

  • Copy Fastly config to Live Fastly setup.
  • [PRE] Take site speed test at https://tools.pingdom.com
  • [PRE] Create WPENGINE install restore point
  • [PRE] Acquire Let's Encrypt or RapidSSL certificate
  • [LAUNCH] [WPENGINE] Change the SSL settings to https://fewerthanthree.com/wp-content/uploads/2016/09/ssl-wpengine-settings-wordpress.jpg
  • [LAUNCH] [SFTP] Change (hardcoded) site and home addresses in wp-config.php
  • [LAUNCH] [SFTP] Find / replace any http references in .htaccess or redirect files
  • [LAUNCH] [SFTP] Find / replace any http references in theme files, particularly style.css, functions.php - Change protocol agnostic to forced https
  • [LAUNCH] [SFTP] Find / replace any http references in database (use Search Replace by Interconnect/IT)
  • [SEARCH CONSOLE] Add new https property in Google Search Console
  • [SEARCH CONSOLE] Resubmit the site's XML Sitemap