This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
var async = require('async'); | |
var apiKey = process.env.API_KEY; | |
var destinationIds = process.env.DEST_IDS.split(','); | |
var concurrent = !!process.env.CONCURRENT; | |
var deviceDataModel = getDeviceDataModel(); | |
var schedulingDataModel = getSchedulingDataModel(); | |
var subscriptions = {}; | |
var token; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var net = require('net'); | |
var listener = net.createServer(); | |
var port = process.env.PORT || 6980; | |
var sendNack = !!process.env.SEND_NACK; | |
var startBlock = String.fromCharCode(0x0B); | |
var endBlock = String.fromCharCode(0x1C, 0x0D); | |
listener.on('connection', function (socket) { | |
function printEventMessage(event) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'aws-sdk-v1' | |
require 'aptible/auth' | |
require 'aptible/api' | |
require 'io/console' | |
# Fill in these required params | |
############################### | |
if ENV["APTIBLE_EMAIL"] then | |
EMAIL = ENV["APTIBLE_EMAIL"] | |
else |