Skip to content

Instantly share code, notes, and snippets.

async sipDialout(
sessionId: string,
pin: string,
sipUri: string
): Promise<OpenTokSipReponse> {
this.logger.verbose(
`Sip dialout [Session: ${sessionId}] [Pin: ${pin}] [Uri: ${sipUri}]`
);
return new Promise((resolve, reject) => {
const token: string = this.OT.generateToken(sessionId, {
@woodja
woodja / hmac.cpp
Created July 25, 2013 19:27
Generate Base64 encoded SHA256 HMAC using C++ and Crypto++ http://www.cryptopp.com for use with AWS API
#include <iostream>
using std::cout;
using std::cerr;
using std::endl;
#include <string>
using std::string;
#include "cryptlib.h"
using CryptoPP::Exception;
@woodja
woodja / hipchat_echo.sh
Last active December 20, 2015 03:39
HipChat notification command, which can be used as part of deploy scripts, test automation, etc.
#!/bin/bash
# Make sure to add your token and room id
# Input is from standard input, so you can run it like
# echo "This is a test" | hipchat_echo.sh
# date | hipcaht_echo.sh
# cat results.log | hipchat_echo.sh
# hipchat_echo.sh
# my quick message ^D