Skip to content

Instantly share code, notes, and snippets.

View TRoetz's full-sized avatar

Tommie Roetz TRoetz

View GitHub Profile
@TRoetz
TRoetz / 0.config
Created December 12, 2017 02:35 — forked from christiannelson/0.config
Using HAProxy with Node.js, Socket.io and SSL
global
nbproc 1
maxconn 65536
defaults
timeout connect 5s
timeout queue 5s
timeout server 30s
timeout tunnel 1h
@TRoetz
TRoetz / TSQL-to-POCO
Created August 14, 2017 09:04 — forked from joey-qc/TSQL-to-POCO
A simple TSQL script to quickly generate c# POCO classes from SQL Server tables and views. You may tweak the output as needed. Not all datatypes are represented but this should save a bunch of boilerplate coding. USAGE: Run this query against the database of your choice. The script will loop through tables, views and their respective columns. Re…
declare @tableName varchar(200)
declare @columnName varchar(200)
declare @nullable varchar(50)
declare @datatype varchar(50)
declare @maxlen int
declare @sType varchar(50)
declare @sProperty varchar(200)
DECLARE table_cursor CURSOR FOR
@TRoetz
TRoetz / function.json
Created February 12, 2017 22:09 — forked from markheath/function.json
Azure Functions simple in-memory CRUD web API
{
"bindings": [
{
"type": "httpTrigger",
"direction": "in",
"webHookTypeX": "genericJson",
"name": "req",
"methods": [
"get",
"post",
var app = require('app'); // Module to control application life.
app.commandLine.appendSwitch ('ignore-certificate-errors', 'true');
var BrowserWindow = require('browser-window'); // Module to create native browser window.
// Report crashes to our server.
//require('crash-reporter').start();
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is GCed.
var mainWindow = null;
@TRoetz
TRoetz / Polycom Provisioning
Created September 29, 2016 00:33 — forked from rpfilomeno/Polycom Provisioning
Polycom Provisioning
Firmwares:
http://downloads.polycom.com/voice/voip/sip_sw_releases_matrix.html
http://downloads.polycom.com/voice/voip/uc_sw_releases_matrix.html
Configuration:
http://etel.wiki.oreilly.com/wiki/index.php/Dynamic_Phone_Provisioning_with_res_phoneprov_and_TFTP
https://freeswitch.org/confluence/display/FREESWITCH/Polycom+Configuration
Reset Codes:
1. Find and write down the MAC id of the phone you want to reset. You can typically find it on the back of the phone. If the label on the back of the phone with the MAC id is removed, you can find it by pressing Menu, Status, Network, Ethernet.