Skip to content

Instantly share code, notes, and snippets.

View rossja's full-sized avatar

Jason Ross rossja

View GitHub Profile
@rossja
rossja / laforge_cty_error_fix.md
Last active February 12, 2019 01:52
Fixing Laforge cty.primitiveType errors

When running laforge, if you get the following error:

panic: gob: registering duplicate types for "github.com/zclconf/go-cty/cty.primitiveType": cty.primitiveType != cty.primitiveType

The following steps can be taken to fix it:

  1. Edit $GOPATH/src/github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty/cty/types_to_register.go
  2. Comment out the following import statements:
 "math/big"
@rossja
rossja / runpi.sh
Last active October 22, 2020 14:52
QEMU Raspberry Pi 2 Emulation on Mac OS X
#!/bin/bash
# tested on Max OS X 10.13.2 "High Sierra"
# install qemu using: `brew install qemu`
# get kernel from: https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.4.34-jessie?raw=true
# get raspbian image from: http://downloads.raspberrypi.org/raspbian_latest
qemu-system-arm \
-kernel kernel-qemu-4.4.34-jessie \
-cpu arm1176 \