Skip to content

Instantly share code, notes, and snippets.

View hoffmabc's full-sized avatar

Brian Hoffman hoffmabc

View GitHub Profile
### Keybase proof
I hereby claim:
* I am hoffmabc on github.
* I am openbazaar (https://keybase.io/openbazaar) on keybase.
* I have a public key whose fingerprint is F186 A6A4 CF94 98AB E58F 53B9 DFEE B5A2 438F A17C
To claim this, I am signing this object:
@hoffmabc
hoffmabc / gist:9510325229819d75aad3
Last active August 29, 2015 14:10
eHealth Exchange Adapter Review

Exchange Adapter Code

AdapterBundle

  • sets up adapter_dev2
  • execute VistaLinkSetup jar

VANHIN_Adapter

  • connectorConfig.xml
  • mapping HashMap or POJO to XML C32 or C62
2014-11-21 16:17:21,796 - [1] CryptoTransportLayer - INFO - Received message type "hello" from "seed.openlabs.co" tcp://104.131.22.22:12345 38f2294d84c192e606b234739b5004297ccebf76
2014-11-21 16:17:21,797 - [1] CryptoTransportLayer - INFO - Pinged {"senderNick": "seed.openlabs.co", "pubkey": "046a8988427dd298bee0792c8b5d02debe26b66d5975049dc1695b8c4b24ceffd14d6b256541a2144dbf1ac3ebf3b6ebc884cefdb15d06cf61ae44647f5890bb6d", "uri": "tcp://104.131.22.22:12345", "senderGUID": "38f2294d84c192e606b234739b5004297ccebf76", "v": "0.3.1.dev0", "type": "hello"}
2014-11-21 16:17:21,892 - [1] CryptoTransportLayer - INFO - Received message type "hello" from "seed.openlabs.co" tcp://104.131.22.22:12345 38f2294d84c192e606b234739b5004297ccebf76
2014-11-21 16:17:21,893 - [1] CryptoTransportLayer - INFO - Pinged {"senderNick": "seed.openlabs.co", "pubkey": "046a8988427dd298bee0792c8b5d02debe26b66d5975049dc1695b8c4b24ceffd14d6b256541a2144dbf1ac3ebf3b6ebc884cefdb15d06cf61ae44647f5890bb6d", "uri": "tcp://104.131.22.22:12345", "sen
Verifying that +brianhoffman is my Bitcoin username. You can send me #bitcoin here: https://onename.io/brianhoffman
def fetched(ec, history):
self._log.info(history)
if ec is not None:
self._log.error("Error fetching history: %s" % ec)
return
self._fetched(history, destination, finished_cb)
self.client.fetch_history(self.address, fetched)
@hoffmabc
hoffmabc / gist:1162808187c9a92c10c1
Created July 7, 2014 16:44
Fixed Price contract fields
contract = { "OBCv":"0.1-alpha" };
contract.category = "physical_goods";
contract.nym_id = "";
contract.contract_exp = "2014-01-01 00:00:00";
contract.keywords = "";
contract.currency = "XBT";
contract.node_id = "";
contract.address = "";
contract.sellerPGP = "";
contract.item_title = "";
import hashlib
import json
import logging
import traceback
from urlparse import urlparse
import obelisk
from protocol import hello_request, hello_response, proto_response_pubkey
from pymongo import MongoClient
import pyelliptic as ec
import json
import logging
from collections import defaultdict
import traceback
from multiprocessing import Process, Queue
from threading import Thread
from random import randint
from zmq.eventloop import ioloop, zmqstream
import zmq
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
{
"OpenBazaar Contract": {
"OBCv": "0.1",
"Category": "Physical good",
"Sub-category,": "Ask price: negotiable",
"Nonce": "01",
"Expiration": "2014-06-29 12:00:00"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
nym_id : SamPatt
btc_addr : 17GpZr1wkzHQtdvtCuj3V8Em8xd9Rbj7At
asset_name : 1 USB Drive - 256MB
asset_price : 0.0026
contract_exp : 2014-06-29 12:00:00
-----BEGIN PGP SIGNATURE-----