Skip to content

Instantly share code, notes, and snippets.

View brnkrygs's full-sized avatar

Brian Krygsman brnkrygs

View GitHub Profile
@brnkrygs
brnkrygs / command-log.txt
Created May 4, 2017 14:37
Error Running Azure/iot-gateway-opc-ua
PS C:\Support\iot-gateway-opc-ua-1.0.0-src\iot-gateway-opc-ua-1.0.0> dotnet --info
.NET Command Line Tools (1.0.3)
Product Information:
Version: 1.0.3
Commit SHA-1 hash: 37224c9917
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
@brnkrygs
brnkrygs / client.py
Created April 19, 2017 01:51
Quick Azure IotHub MQTT Client
##
## Quick implementation of a Paho-based MQTT client for Azure IoTHub
##
## Inspired by:
## https://kevinsaye.wordpress.com/2016/09/16/connect-to-azure-iot-hub-from-python/
## http://stackoverflow.com/a/36582537/13264
from paho.mqtt import client as mqtt
import ssl
@brnkrygs
brnkrygs / client.js
Created December 1, 2016 06:32
Node Ping-Pong - sample code demonstrating nodejs request/response behavior on standard HTTP/S ports
var http = require('http');
var options = {
host: 'localhost',
method: 'GET',
path: '/',
port: '8080'
// port: '80' // When making an HTTP request on a standard port, this is _not_ included in request data
}
@brnkrygs
brnkrygs / Leve2ChildEntity.cs
Last active August 29, 2015 14:09
Automapper Project().To<>() depth issue
public class Level2ChildEntity : IEntity<Level2ChildEntity>
{
public string Name{get;set;}
public Level2ChildEntity(){}
}

Keybase proof

I hereby claim:

  • I am brnkrygs on github.
  • I am brnkrygs (https://keybase.io/brnkrygs) on keybase.
  • I have a public key whose fingerprint is 3E63 0735 B4E8 8150 A434 58F0 58B4 BF15 8BBF 1BB4

To claim this, I am signing this object:

@brnkrygs
brnkrygs / karma.conf.js
Last active August 29, 2015 13:57
A sample karma configuration file and controller .spec file for testing an AngularJS controller via Jasmine
// Karma configuration
// Generated on Fri Sep 27 2013 13:59:15 GMT-0400 (Eastern Daylight Time)
module.exports = function( config ) {
// Setting these vars is something we're doing, I don't think its convention
var appRoot = ''; // ~/
var appContentSegment = 'Content/js/'; // ~/Content/js