Skip to content

Instantly share code, notes, and snippets.

View arhea's full-sized avatar

Alex Rhea arhea

View GitHub Profile
@arhea
arhea / capistrano-laravel-deploy.rb
Last active July 12, 2017 06:47
Capistrano 3 deploy script for Laravel 4.
# config valid only for Capistrano 3.1
lock '3.1.0'
set :application, "" # EDIT your app name
set :scm, :git
set :repo_url, "" # EDIT your git repository
set :keep_releases, 3

Keybase proof

I hereby claim:

  • I am arhea on github.
  • I am arhea (https://keybase.io/arhea) on keybase.
  • I have a public key whose fingerprint is CACC 9290 4E35 0600 F293 4DB8 41A4 DB43 D4DB 0DD4

To claim this, I am signing this object:

* aws_network_acl.data: diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue.
Please include the following information in your report:
Terraform Version: 0.8.1
Resource ID: aws_network_acl.data
Mismatch reason: attribute mismatch: egress.3016490570.action
Diff One (usually from plan): *terraform.InstanceDiff{mu:sync.Mutex{state:0, sema:0x0}, Attributes:map[string]*terraform.ResourceAttrDiff{"egress.730019245.icmp_code":*terraform.ResourceAttrDiff{Old:"0", New:"0", NewComputed:false, NewRemoved:true, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ingress.3016490570.cidr_block":*terraform.ResourceAttrDiff{Old:"0.0.0.0/0", New:"0.0.0.0/0", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ingress.3016490570.icmp_type":*terraform.ResourceAttrDiff{Old:"0", New:"0", NewComputed:false, NewRemoved:true, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:
#!/bin/bash
( cat <<-EOF
ListenAddr = ":8080"
DockerURL = "$SWARM_HOST"
TLSCACert = "/certs/ca.pem"
TLSCert = "/certs/cert.pem"
TLSKey = "/certs/key.pem"
[[Extensions]]
Name = "nginx"
@arhea
arhea / Dockerfile
Created December 22, 2016 22:58
Interlock Dockerfile
FROM ehazlett/interlock:1.1.1
RUN apk add --no-cache bash gawk sed grep bc coreutils
VOLUME /certs
EXPOSE 8080
COPY ./templates/nginx.tmpl /etc/interlock/nginx.conf.template
@arhea
arhea / docker-compose.yml
Created December 22, 2016 22:59
Interlock & NGINX docker-compose.yml
interlock:
image: dtr.example.com/proxy/interlock:latest
restart: always
tty: true
environment:
- 'affinity:container!=*interlock*'
- 'SWARM_HOST=tcp://ucp.examplpe.com:2376'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- 'ucp-node-certs:/certs'
@arhea
arhea / docker-log-options.sh
Last active December 22, 2016 23:03
Docker JSON File Log Options
--log-driver json-file # logging driver
--log-opt max-size=50m # max size of a log file
--log-opt max-file=4 # number of files to create before discarding logs
# syslog over udp
docker run -d --name=logspout \
--restart always \
-v /var/run/docker.sock:/var/run/docker.sock \
gliderlabs/logspout \
syslog://logs.example.com:1111
# syslog over tcp
docker run -d --name=logspout \
@arhea
arhea / rexray_iam_policy.json
Created January 11, 2017 18:35
RexRay Amazon Web Services IAM Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Action": [
"ec2:AttachVolume",
"ec2:CreateVolume",
"ec2:CreateSnapshot",
@arhea
arhea / rexray_install.sh
Created January 11, 2017 18:38
Install and Configure RexRay with Docker
#!/bin/bash
curl -sSL https://dl.bintray.com/emccode/rexray/install | sh
cat > /etc/rexray/config.yml <<'EOF'
rexray:
modules:
default-docker:
disabled: true
efs-docker: