Skip to content

Instantly share code, notes, and snippets.

View gregharvey's full-sized avatar

Greg Harvey gregharvey

View GitHub Profile
@gregharvey
gregharvey / localgovdrupal-cfn.md
Last active April 19, 2021 17:02
LocalGovDrupal on CloudFront blog

Although I work for an AWS partner, I've always shied away from AWS CloudFormation, their orchestration technology. However, when I got talking to Will at LocalGovDrupal about reducing the barrier to entry for smaller organisations who want to use the distribution as a starting point, a plan formed. Perhaps the AWS Marketplace would be a good way to allow other councils to find and try out LocalGovDrupal?

The kicker of course is to put something in AWS Marketplace you pretty much need to build it with AWS CloudFormation. CloudFormation basically provides a YAML or JSON formatted means of describing any AWS service so it can be automatically set up and configured, and as a result your infrastructure can be saved in code, in much the same way as the popular Terraform from Hashicorp does, not to mention the AWS Ansible modules. After some Googling I fell upon the AWS Reference Architecture project for Highly Available Drupal. It was pretty out of date, but nice and complete, even with DNS handling and SSL and C

@gregharvey
gregharvey / .bashrc
Created June 28, 2017 07:15 — forked from mcjim/.bashrc
Git branch, dirty and stash state in Bash prompt.
# Quick fork by @mcjim to add stash status and tweak to suit his style.
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
# host dir master $ # clean working directory
# host dir master* $ # dirty working directory
# host dir master*^ $ # dirty working directory with stash
# host dir master^ $ # clean working directory with stash
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working tree clean" ]] && echo "*"
@gregharvey
gregharvey / ffs.txt
Created February 14, 2017 15:00
This is what I have to put up with...
Feb 14 15:47:17 <@instanceofjamie> gregharvey: I'm going to hold out for matason to come back. I don't know if I have to run this on one or both app servers.
Feb 14 15:47:31 <@gregharvey> k
Feb 14 15:48:22 <galooph> ♬♪♫ you're holding out for a hero ♫♪♬ “ヽ(´▽`)ノ”
Feb 14 15:49:14 <@instanceofjamie> ♬♪♫ tilt he end of the night ♫♪♬ “ヽ(´▽`)ノ”
Feb 14 15:49:19 <@instanceofjamie> join in, andymartel
Feb 14 15:50:11 <andymartel> ♬♪♫ He's gotta be strong and he's gotta be fast ♬♪♫ “ヽ(´▽`)ノ”
Feb 14 15:50:19 <@instanceofjamie> \m/
Feb 14 15:50:28 <galooph> bring it home, emlyn
Feb 14 15:50:35 <@instanceofjamie> NOT WITH A JOKE
Feb 14 15:50:42 <galooph> glol

Keybase proof

I hereby claim:

  • I am gregharvey on github.
  • I am greg_harvey (https://keybase.io/greg_harvey) on keybase.
  • I have a public key whose fingerprint is E44E 4AE2 51C8 87AD 87A2 FADE BBA1 236A D9F9 4E72

To claim this, I am signing this object: