Skip to content

Instantly share code, notes, and snippets.

View michaeldye's full-sized avatar

Michael Dye michaeldye

  • IBM Infrastructure
  • Salt Lake City, UT
View GitHub Profile
USER=<exch_user>
PASS=<exch_password>
EMAIL=<exch_email>
DEVICE_ID=<device_id>
PARTNER_ID=<ha_partner_device_id>
TOKEN=<exchange_token_to-set>
ANAX_API="http://localhost"
curl -vLX PUT --header 'Content-Type: application/json' --header 'Accept: application/json' -H "Authorization:Basic $USER:$PASS" -d '{"token":"'$TOKEN'","name":"'$DEVICE_ID'","registeredMicroservices":[],"msgEndPoint":"","softwareVersions":{}}' 'https://exchange.staging.bluehorizon.network/v1/devices/'$DEVICE_ID | jq -r '.'
@michaeldye
michaeldye / gist:76b1c5d955b259ffd455
Created February 29, 2016 17:56
go-ethereum panic
I0219` 09:14:12.167092 41 blockchain.go:1243] imported 1 block(s) (0 queued 0 ignored) including 1 txs in 26.932847ms. #119693 [3bf5f447 / 3bf5f447]
94ddeb8fc8b76ed8caa86b319213d74dd39cfa83,15257,2016-02-19 09:14:16.972187354+00:00,d70d7e98434e
393464646562386663386237366564386361613836623331393231336437346464333963666138332c31353235372c323031362d30322d31392030393a31343a31362e3937323138373335342b30303a30302c643730643765393834333465
shh id good: true
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x614c4b]
goroutine 43 [running]:
github.com/ethereum/go-ethereum/xeth.(*whisperFilter).insert(0x0, 0xc82034cbb8, 0x1, 0x1)
/tmp/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/xeth/whisper_filter.go:72 +0x32b
@michaeldye
michaeldye / bm_order.py
Last active August 29, 2015 14:27
SL Baremetal verify and place order
#!/usr/bin/env python3
# -*- coding: latin-1 -*-
__author__ = 'michael dye <mdye@us.ibm.com>'
__copyright__ = '2015 IBM'
__license__ = 'EPL-1.0'
import SoftLayer
import json
import sys