Skip to content

Instantly share code, notes, and snippets.

View davenaylor's full-sized avatar

Dave Naylor davenaylor

View GitHub Profile
#!/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"
#!/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.
@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:

<?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.

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 &lt; app_name-wildcard.cert &gt; app_name-wildcard.info
@davenaylor
davenaylor / uploads.yml
Last active August 29, 2015 14:24 — forked from louim/uploads.yml
---
- name: Sync uploads between environments
hosts: web
remote_user: "{{ web_user }}"
vars:
project: "{{ wordpress_sites[site] }}"
project_root: "{{ www_root }}/{{ site }}"
tasks:
@davenaylor
davenaylor / orlfc_stats_2017.txt
Last active September 19, 2017 20:21
ORLFC Player Stats
Oldham RLFC Player Statistics (after 31 games)
A I T G D Pts
1 Scott Turner 14 0 4 0 0 16
2 Adam Clay 30 0 10 0 0 40
3 George Tyson 21 0 9 0 0 36
4 Nathan Chappell 0 0 0 0 0 0
5 Jamel Chisholm 4 0 1 0 0 4
6 Scott Leatherbarrow 25 0 0 65 0 130
7 David Hewitt 28 0 5 10 0 40
@davenaylor
davenaylor / wordpress-twitter-cards.php
Created January 26, 2017 10:35 — forked from zoerooney/wordpress-twitter-cards.php
WordPress Twitter card info (assumes you've already got basic open graph data via a plugin), tutorial here: http://zoerooney.com/blog/tutorials/increase-share-ability-using-twitter-cards/
<?php // Include Twitter IDs for content creator (you, usually) ?>
<meta name="twitter:site" content="@zoe_rooney"/>
<meta name="twitter:creator" content="@zoe_rooney"/>
<?php
// get current post ID
$currentpost = get_the_ID();
// get radio value
$radio = get_field( 'twitter_card_options', $currentpost );
Kingstone Press Championship Table
P W L D PF PA PD PTS
1 Hull Kingston Rovers 23 19 3 1 850 385 465 39
2 London Broncos 23 18 5 0 832 410 422 36
3 Halifax RLFC 23 16 7 0 567 357 210 32
4 Featherstone Rovers 23 15 7 1 687 421 266 31
5 Toulouse Olympique 23 15 8 0 720 466 254 30
6 Batley Bulldogs 23 11 12 0 549 663 -114 22
@davenaylor
davenaylor / KP Championship Shield 2017
Last active September 12, 2017 11:29
KP Championship Shield Table 2017
Kingstone Press Championship Shield Table
P W L D PF PA PD PTS
1 Toulouse Olympique 29 20 9 0 942 572 370 40
2 Batley Bulldogs 29 15 13 1 763 783 -20 31
3 Sheffield Eagles 29 13 16 0 744 952 -208 26
4 Dewsbury Rams 29 11 18 0 555 895 -340 22
5 Rochdale Hornets 29 8 20 1 553 884 -331 17
6 Swinton Lions 29 8 21 0 605 822 -217 16