Skip to content

Instantly share code, notes, and snippets.

---
imports:
- path: manynodes.jinja
resources:
-
name: manynodes
type: manynodes.jinja
properties:
image: https://www.googleapis.com/compute/v1/projects/debian-cloud/global/images/debian-8-jessie-v20150818
region: us-central1
@evandbrown
evandbrown / gist:d4ebdd62d7d57fc291da
Last active August 29, 2015 14:23
Convert all JSON to YAML
ls *.json | \
sed -e 's/\.json//' | \
while read x; do \
ruby -ryaml -rjson -e 'puts YAML.dump(JSON.parse(STDIN.read))' < $x.json > $x.yaml; \
done
#! /bin/bash
git tag | while read line; do
git archive --format=zip $line > release/${PWD##*/}-$line.zip
echo “Created release/${PWD##*/}-$line.zip”
done
// Implementation of a UDP proxy
package main
import (
"flag"
"fmt"
"log"
"net"
"os"
@evandbrown
evandbrown / Dockerfile
Created April 23, 2014 21:15
Dockerfile for Spring Boot
FROM dockerfile/java
# Assumes your-app.jar is in the same dir as Dockerfile when you do a `docker build .`
ADD your-app.jar /src/
# Also assumes your app exposes port 8080
EXPOSE 8080
# Run it!
CMD ["java", "-jar", "/src/your-app.jar"]
@evandbrown
evandbrown / 00_AS_VPC.config
Created February 4, 2014 05:06
Modify an Elastic Beanstalk Environment's AS config to automatically associate a public IP address so the AS Group can run in the same public subnet as the ELB.
Resources:
AWSEBAutoScalingLaunchConfiguration:
Type: AWS::AutoScaling::LaunchConfiguration
Properties:
AssociatePublicIpAddress: true