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
#!/bin/sh | |
[email protected] | |
pass=timmytest1 | |
# Assumes vimond-api-proxy is running locally on port 8001 | |
apiproxyhost=http://localhost:8001 | |
assetid=1667 | |
echo "Authenticating..." |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEAoDT54vwleh1kSX0pkUJbmblSwm+tpa3sKfKF/JhGNdKkstMp1OlSnxHa7VYsRBQc4FUEjaoPuzcn7DvDZ/54G//q9xV/y0PV89nZ/ftUgYdPWf+WVfbKeVsVkGqnNWSxg4m5oWaBwZvBuAbOaPJ8XgycxXxXteR+aDwIHcgnLr9tp5IhRcyRkkz1Re87dwv8uwkVoZ0hVKocqHi+x2TkoG87ARo4u7JnEwXYOcs+L+JTucB0EOYNnpaOVDv2t8h0q7hNnxPRCLOLrNPA73u075C0ZXjcHxWhX4FEf2KdLSZBXaDDrX85lCEUK7Xnr9xfmgXvJeLTvXyanhEIuLVvI0Dex7gDxskzDjoqpuOCkwjwBT6mFtqA3CPjtrjNhHoi6oOBE3fyW9TwsPxDqDuSMAwLPajUfxWRKiM1gWuAL23p78AHHgypLlSaMEWmVoKuQ4We/YkfJH1kNJlJeP+cEef/PPoL46iDjCYvWl/PcEvDTklJi25kXx3BVNPXRyMgp9qjXw/f0SBXJ4NhZXr7KNJ76rZTFP4KpXWA2UpcgUK+B5HzfSiXWxKJEB1ybdv2L2lM1eYitR8rnkOO6dWJqkwWS4QCerW8OQJxHSAX60vdM9XOhvzcdHyWEKEhDuwWa4Xs4XoeYN4OEZVnc7CSN4AUA1C7Tmj1dULJi6rQ3gU= Timothy Whelan <[email protected]> |
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
service.on('testVideoIp', | |
s.Object({ | |
ip: s.String() | |
}), async (data, callback) => { | |
console.log('Request:', data) | |
let res2 = await db.manyOrNone('SELECT cds_id, subnet FROM cds_subnet', []) | |
let res = {} | |
res2.forEach(async (row, done) => { | |
console.log(row) | |
let cds = await db.oneOrNone('SELECT * from cds WHERE cds_id = $1', [row.cds_id]) |
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
import pgpromise from 'pg-promise' | |
import async from 'async' | |
let config = { pgConnectionStrings: { | |
contentcontrol: "postgres://apiservice:password@localhost:5432/contentcontroldb_development", | |
contentcontrolReadOnly: "postgres://apiservice:password@localhost:5432/contentcontroldb_development"}} | |
const pgp = pgpromise() | |
const db = pgp(config.pgConnectionStrings.contentcontrol) |