Skip to content

Instantly share code, notes, and snippets.

View amarzavery's full-sized avatar
💭
Imagine your Destiny :)

Amar Zavery amarzavery

💭
Imagine your Destiny :)
View GitHub Profile
@amarzavery
amarzavery / multiConnection.ts
Created October 1, 2018 21:28
multiple amqp connections in the same process
import {
Connection, Receiver, EventContext, ConnectionOptions, ReceiverOptions, delay, ReceiverEvents, types
} from "../lib";
import * as dotenv from "dotenv"; // Optional for loading environment configuration from a .env (config) file
dotenv.config();
const host = process.env.AMQP_HOST || "host";
const username = process.env.AMQP_USERNAME || "sharedAccessKeyName";
const password = process.env.AMQP_PASSWORD || "sharedAccessKeyValue";
@amarzavery
amarzavery / contentKeyPolicies.svg
Created June 8, 2018 17:41
uml for media services, contentkey policies
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@amarzavery
amarzavery / package.json
Created February 15, 2018 21:30
simple send receive using rhea
{
"name": "test-rhea",
"version": "0.1.0",
"dependencies": {
"rhea": "*",
"uuid": "*"
}
}
{
"swagger": "2.0",
"info": {
"title": "NetworkManagementClient",
"description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.",
"version": "2016-12-01"
},
"host": "management.azure.com",
"schemes": [
"https"
@amarzavery
amarzavery / test.js
Created January 18, 2017 05:37
test script
// Please install sway and request before executing the script
'use strict';
var Sway = require('sway'),
request = require('request'),
path = require('path'),
fs = require('fs'),
util = require('util');
class SpecValidator {