Skip to content

Instantly share code, notes, and snippets.

Erik Teichmann eriktdesign

Block or report user

Report or block eriktdesign

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@eriktdesign
eriktdesign / download-wpe-backup
Last active Feb 7, 2020
Download a custom backup from WPEngine
View download-wpe-backup
#!/bin/bash
if [ "$1" != "" ]; then
env_name=$1
else
echo -n "WP Engine Environment Name: "
read env_name
fi
echo "Creating backup from $env_name.wpengine.com..."
@eriktdesign
eriktdesign / setup-local.sh
Created Jan 18, 2020
Configurations for a Local WordPress site
View setup-local.sh
#!/usr/bin/php
<?php
# Script Options
$shortopts = "";
# $shortopts .= "p:"; // Required value
# $shortopts .= "v::"; // Optional value
$shortopts .= "i"; // Use http
$longopts = array(
@eriktdesign
eriktdesign / .htaccess
Created Jan 16, 2020
Redirect Image Requests to Production
View .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/[^\/]*/?.*$
RewriteRule ^(.*)$ https://production-site-url.com/$1 [QSA,L]
</IfModule>
@eriktdesign
eriktdesign / tithely_iframe_embed.html
Created Mar 26, 2019
Embed a tithely widget in an iframe
View tithely_iframe_embed.html
<iframe id="tithely-web-widget-wrapper" style="overflow: hidden; background-color: #ffffff; opacity: 1; max-height: 80vh;" src="https://tithe.ly/give_new/www/#/tithely/give-one-time/<<<YOUR CHURCH ID NUMBER HERE>>>" width="100%" height="770px" frameborder="0"></iframe>
You can’t perform that action at this time.