Skip to content

Instantly share code, notes, and snippets.

View rahart's full-sized avatar

Travis Harrington rahart

View GitHub Profile
@rahart
rahart / crashlog
Last active December 29, 2016 17:50
Amazon chroot builder panic
2016/12/29 04:16:57 ui: ==> amazon-chroot: Deleting the created EBS volume...
2016/12/29 04:16:57 packer: panic: interface conversion: interface {} is nil, not map[string][]string
2016/12/29 04:16:57 packer:
2016/12/29 04:16:57 packer: goroutine 42 [running]:
2016/12/29 04:16:57 packer: panic(0x13e6f60, 0xc4202b5680)
2016/12/29 04:16:57 packer: /usr/local/Cellar/go/1.7.3/libexec/src/runtime/panic.go:500 +0x1a1
2016/12/29 04:16:57 packer: github.com/mitchellh/packer/builder/amazon/common.(*StepAMIRegionCopy).Run(0xc4202755c0, 0x1e117a0, 0xc420275530, 0x0)
2016/12/29 04:16:57 packer: /Users/mwhooker/go/src/github.com/mitchellh/packer/builder/amazon/common/step_ami_region_copy.go:26 +0x8ff
2016/12/29 04:16:57 packer: github.com/mitchellh/packer/vendor/github.com/mitchellh/multistep.(*BasicRunner).Run(0xc42022d980, 0x1e117a0, 0xc420275530)
2016/12/29 04:16:57 packer: /Users/mwhooker/go/src/github.com/mitchellh/packer/vendor/github.com/mitchellh/multistep/basic_runner.go:70 +0x207
@rahart
rahart / polly.py
Created November 30, 2016 20:53
AWS Polly tinkering
from boto3 import client
import io
import subprocess
import os
c = client('autoscaling', region_name="us-west-2")
asg_resp = c.describe_auto_scaling_groups()
polly = client("polly", region_name="us-west-2")
response = polly.synthesize_speech(
@rahart
rahart / keybase.md
Created July 8, 2016 20:54
Keybase

Keybase proof

I hereby claim:

  • I am rahart on github.
  • I am rahart (https://keybase.io/rahart) on keybase.
  • I have a public key ASDfqSVI89Gyw39ItZ3ovrsiX2WNWsCgus6E4GX8eC_-dwo

To claim this, I am signing this object:

@rahart
rahart / .awsfuncs
Last active May 31, 2016 18:24
Start of .awsfuncs
#Shortcuts
alias s3='aws s3'
alias ec2='aws ec2'
alias instance=awsInstance
function awsInstance(){
aws ec2 describe-instances --instance-ids $1 --output table
}
alias instances=awsInstances
@rahart
rahart / gist:868e5d7a26f65635d867
Created May 26, 2015 19:57
simple user-data base64 service configuration
#!upstart
start on (local-filesystems and net-device-up IFACE=eth0)
setuid root
setgid root
task
script
eval $(curl -s http://169.254.169.254/latest/user-data)
@rahart
rahart / simpleservice-init.conf
Last active August 29, 2015 14:18
Simple Upstart download, emit and start service scripts
# SimpleService-init
description "SimpleService Initialize Task: downloads fatjar from s3bucket"
start on (local-filesystems and net-device-up IFACE=eth0)
setuid root
setgid root
task
script