Reference(s):
http://www.sourcegear.com/diffmerge/downloads.php - get the installer version, NOT the dmg version
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Master template that includes nested templates", | |
"Parameters": { | |
"DeployBastion": { | |
"Description": "Should a bastion server be deployed?", | |
"Default": "No", | |
"Type": "String", | |
"AllowedValues": ["No", "Yes"] | |
} |
#!/usr/bin/env bash | |
function link_stree { | |
ln -s /Applications/SourceTree.app/Contents/Resources/stree /usr/local/bin/ | |
} | |
function install { | |
link_stree | |
} |
Reference(s):
http://www.sourcegear.com/diffmerge/downloads.php - get the installer version, NOT the dmg version
package main | |
import ( | |
"net/http" | |
"html/template" | |
) | |
func handler(w http.ResponseWriter, r *http.Request) { | |
t, _ := template.ParseFiles("view.html") //setp 1 | |
t.Execute(w, "Hello World!") //step 2 |
# This file is: ~/.ssh/config | |
# You may have other (non-CodeCommit) SSH credentials stored in this | |
# config file – in addition to the CodeCommit settings shown below. | |
# NOTE: Make sure to run [ chmod 600 ~/.ssh/config ] after creating this file! | |
# Credentials for Account1 | |
Host awscc-account1 # 'awscc-account1' is a name you pick | |
Hostname git-codecommit.us-east-1.amazonaws.com # This points to CodeCommit in the 'US East' region |
Packer
Packer is used to build image from a base image, perform provisions and store (commit) the final image.
We use provisioners and Packer templates to do the actual work to create the final image.
We use Ansible for provisioning.
#!/bin/bash -xe | |
# requires jq and 3 brokers to start | |
which jq || echo 'no jq found, bye!' && exit 1 | |
ZK_HOST=zkhost1:2181/kafka | |
# record all topics | |
/usr/local/kafka/bin/kafka-topics.sh --zookeeper $ZK_HOST --list > all_topics | |
# generate json for listing which topics to reassign |
#!/bin/bash | |
EXEC_SCRIPT=/opt/local/bin/airflow | |
CMDNAME=`basename $0` | |
LOG_DIR=/var/log/airflow | |
PID_DIR=/var/run | |
PID_FILE="$PID_DIR"/airflow_webserver.pid | |
LOG_FILE="$LOG_DIR"/webserver.log | |
PORT=8888 | |
RUN_USER=vagrant |
This gist contains lists of modules available in
in AWS Lambda.