Skip to content

Instantly share code, notes, and snippets.

View ryanmaclean's full-sized avatar
🍩
Running tf apply 💜

Ryan MacLean ryanmaclean

🍩
Running tf apply 💜
View GitHub Profile
@ryanmaclean
ryanmaclean / coreos-ecs-agent-cloudformation.template
Created December 1, 2015 22:48 — forked from kgorskowski/coreos-ecs-agent-cloudformation.template
AWS CloudFormation Template for CoreOS stable including AWS ECS Agent. Provide ECS - Cluster and IAM Role, otherwise the ECS service will not work
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "CoreOS on EC2: http://coreos.com/docs/running-coreos/cloud-providers/ec2/",
"Mappings" : {
"RegionMap" : {
"eu-central-1" : {
"AMI" : "ami-487d4d55"
},
@ryanmaclean
ryanmaclean / gist:5c75597c3a65ec4b7c21
Last active August 29, 2015 14:22 — forked from AggroBoy/gist:1242257
Escape XML with Sed
sed -e 's~&~\&amp;~g' -e 's~<~\&lt;~g' -e 's~>~\&gt;~g' -e 's~\"~\&quot;~g' -e "s~\'~\&apos;~g"
@ryanmaclean
ryanmaclean / alfresco_startup_script_modified.sh
Last active August 29, 2015 14:08 — forked from billerby/alfresco
Run Alfresco Start Up Script as a User Other Than Root
#!/bin/sh
#
# chkconfig: 2345 80 30
# description: Alfresco Enterprise
#
# Username YOURUSER used in this case. Replace with one defined locally
# e.g.: with Chef or Puppet.
$YOURUSER = YOURUSER
RETVAL=0
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'