Skip to content

Instantly share code, notes, and snippets.

View eriktdesign's full-sized avatar

Erik Teichmann eriktdesign

View GitHub Profile
@eriktdesign
eriktdesign / resume.json
Last active April 8, 2022 14:34
Erik Teichmann Resume
{
"basics": {
"label": "Web Developer",
"email": "erik@eriktdesign.com",
"phone": "(603) 244-8843",
"website": "https://eriktdesign.com",
"name": "Erik Teichmann",
"summary": "Erik is a freelance web developer living in Lancaster, Pennsylvania. He is also a musician, photographer, videographer, family man, and all around Nice Guy.",
"picture": "https://www.gravatar.com/avatar/dce6423212023c22e5cca7d020b48e35?s=800.jpg",
"profiles": [
@eriktdesign
eriktdesign / generate-wpe-gitignore
Created September 23, 2021 17:42
Generate a .gitignore file based on WP Engine's WordPress .gitignore
#!/bin/bash
if [ "$1" != "" ]; then
theme_name=$1
fi
FILE=.gitignore
if test -f "$FILE"; then
echo ".gitignore exists, aborting."
else
@eriktdesign
eriktdesign / download-wp-backup
Last active September 23, 2021 17:41
Download a custom backup from WPEngine
#!/bin/bash
# Get params
POSITIONAL=()
while [[ $# -gt 0 ]]; do
case $1 in
-s|--server)
SERVER="$2"
shift # past argument
shift # past value
@eriktdesign
eriktdesign / setup-local.sh
Created January 18, 2020 00:27
Configurations for a Local WordPress site
#!/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 January 16, 2020 18:24
Redirect Image Requests to Production
<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 March 26, 2019 22:56
Embed a tithely widget in an iframe
<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>