Skip to content

Instantly share code, notes, and snippets.

View davenaylor's full-sized avatar

Dave Naylor davenaylor

View GitHub Profile

just change out app_name for your purposes

openssl genrsa 2048 > app_name-wildcard.key

openssl req -new -x509 -nodes -sha1 -days 3650 -key app_name-wildcard.key > app_name-wildcard.cert

# Common Name (eg, your name or your server's hostname) []:*.app_name.com

openssl x509 -noout -fingerprint -text < app_name-wildcard.cert > app_name-wildcard.info
<?php
/**
* ACF Layout
* @version 1.0 | November 12th 2013
* @author Beau Charman | http://twitter.com/beaucharman
* @link https://gist.github.com/beaucharman/7181406
* @license MIT license
*
* Logical layout automation for Advanced Custom Fields and it's Flexible Content Field add on.
@davenaylor
davenaylor / keybase.md
Last active August 29, 2015 14:06
Keybase

Keybase proof

I hereby claim:

  • I am davenaylor on github.
  • I am davenaylor (https://keybase.io/davenaylor) on keybase.
  • I have a public key whose fingerprint is 650E 5DB6 5037 6C61 F7A7 199B 3B11 44D8 233B 3770

To claim this, I am signing this object:

#!/bin/sh
#
# Script to deploy to FTP after a commit using dandelion
# This hook will look for any of those tags on your commit message: #deploy, #stage, #production and #dev
# If found, it's going to deploy to the given server.
#
# The following commit message would deploy to the Production and Stage servers:
# git commit -m "Fixed bugs on the header #production #stage"
#
# But you need to have the dandelion config file with the same name of the tag.
#!/bin/bash
# Input database name
echo "---"
echo "wpinstall.sh - A WordPress installation shell script"
echo "by Rutger Laurman"
echo "---"
echo "- Requires WP-CLI, make sure you install that first (http://wp-cli.org/)"
echo "- Check file for configurations"
echo "- Downloads, configures, installs WordPress, default theme and plugins"