This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible==2.3.2.0 | |
asn1crypto==0.24.0 | |
awacs==0.8.1 | |
bcrypt==3.1.5 | |
boto==2.49.0 | |
boto3==1.9.64 | |
botocore==1.12.64 | |
certifi==2018.11.29 | |
cffi==1.11.5 | |
cfn-flip==1.1.0.post1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.6 AS gpac_builder | |
WORKDIR /app | |
RUN apk update && \ | |
apk add --no-cache \ | |
wget \ | |
g++ \ | |
make \ | |
&& \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EC2_REGION="`curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone | sed -e 's:\([0-9][0-9]*\)[a-z]*\$:\\1:'`" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env groovy | |
import hudson.model.* | |
import hudson.EnvVars | |
node { | |
try { | |
stage("blank") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import stackformation | |
from stackformation import BotoSession, Infra | |
from stackformation.aws.stacks import ( iam, vpc, ec2, | |
ebs, s3, eip, elb, sns, | |
logs, alarms, asg, codedeploy | |
) | |
from stackformation.aws import Ami | |
from stackformation.aws import user_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ -d /etc/yum.repos.d ]; then | |
curl -L https://gist.github.com/ibejohn818/aa2bcd6743a59f62e1baa098d6365a61/raw/redhat-init.sh -o /tmp/redhat-install.sh | |
chmod +x /tmp/redhat-install.sh | |
/tmp/redhat-install.sh | |
/opt/aws/bin/cfn-signal --resource $1 --stack $2 --region $3 | |
else | |
curl -L https://gist.github.com/ibejohn818/aa2bcd6743a59f62e1baa098d6365a61/raw/ubuntu-init.sh -o /tmp/ubuntu-install.sh | |
chmod +x /tmp/ubuntu-install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import stackformation | |
from stackformation.aws import ( iam, vpc, ec2, user_data, | |
ebs, s3, eip, elb, sns, | |
logs, alarms, ami | |
) | |
def common_stacks(infra): | |
# VPC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"body": "{\"test\":\"body\"}", | |
"pathParameters": { | |
"proxy": "foo" | |
}, | |
"httpMethod": "POST", | |
"stageVariables": { | |
"baz": "qux" | |
}, | |
"resource": "/{proxy+}", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** | |
* (mt) Media Temple | |
* PHP Tools for Wordpress migrations | |
* | |
* | |
*/ | |
class MT_WP_TOOLS | |
{ | |
private static $_wpDBConfig = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
###EXAMPLE USAGE | |
#./mysql-dump-import-table.sh {OUTHOST:OPTIONAL-PORT} {OUTUSER} {OUTDB_NAME} {INHOST:OPTIONAL-PORT} {INUSER} {INDB_NAME} | |
#Export Vars | |
DB_host=$1 | |
DB_user=$2 | |
DB=$3 |