Skip to content

Instantly share code, notes, and snippets.

View andrew-morris's full-sized avatar
💭
¯\_(ツ)_/¯

Andrew Morris andrew-morris

💭
¯\_(ツ)_/¯
View GitHub Profile
$ terraform plan
panic: runtime error: index out of range
goroutine 1 [running]:
panic(0xaa11c0, 0x821464090)
/opt/go/src/runtime/panic.go:481 +0x3e6
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/hcl/ast.(*ObjectList).Pos(0x82166b920, 0x0, 0x8215a7648, 0x8215a7678, 0x8215a7648, 0x8a3040)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/hcl/ast/ast.go:112 +0x91
github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl.(*decoder).decodeMap(0x8215a8a58, 0x82166b900, 0x13, 0x88214af7e8, 0x82166b920, 0x8a3040, 0x821484230, 0x195, 0x0, 0x0)
/opt/gopath/src/github.com/hashicorp/terraform/vendor/github.com/hashicorp/hcl/decoder.go:343 +0xbc8
2016/05/25 14:32:19 [INFO] Terraform version: 0.6.16 6e586c89394f5474b6c5f3217a4a75ce80c3fd6c
2016/05/25 14:32:19 [DEBUG] Detected home directory from env var: /Users/amorris
2016/05/25 14:32:19 [DEBUG] Discovered plugin: atlas = /usr/bin/terraform-provider-atlas
2016/05/25 14:32:19 [DEBUG] Discovered plugin: aws = /usr/bin/terraform-provider-aws
2016/05/25 14:32:19 [DEBUG] Discovered plugin: azure = /usr/bin/terraform-provider-azure
2016/05/25 14:32:19 [DEBUG] Discovered plugin: azurerm = /usr/bin/terraform-provider-azurerm
2016/05/25 14:32:19 [DEBUG] Discovered plugin: chef = /usr/bin/terraform-provider-chef
2016/05/25 14:32:19 [DEBUG] Discovered plugin: clc = /usr/bin/terraform-provider-clc
2016/05/25 14:32:19 [DEBUG] Discovered plugin: cloudflare = /usr/bin/terraform-provider-cloudflare
2016/05/25 14:32:19 [DEBUG] Discovered plugin: cloudstack = /usr/bin/terraform-provider-cloudstack
# open a handle to the file, with 'read permissions'
f = open("/etc/passwd", "r")
# use the file handle to store the contents of the file into the "contents" object
contents = f.read()
# close the file handle
f.close()
@andrew-morris
andrew-morris / add this to .bashrc file
Last active May 2, 2018 09:53
Downloading files through Tor on the command line
alias tcurl="curl --proxy socks5h://127.0.0.1:9050 $1"
@andrew-morris
andrew-morris / keybase.md
Last active October 12, 2015 17:03
Keybase verification

Keybase proof

I hereby claim:

  • I am andrew-morris on github.
  • I am morris (https://keybase.io/morris) on keybase.
  • I have a public key whose fingerprint is ECEF 47D0 D259 7502 E5AA 5A8A 1C9F FD44 6653 8F6D

To claim this, I am signing this object: