Skip to content

Instantly share code, notes, and snippets.

View TimHeckel's full-sized avatar

Tim Heckel TimHeckel

View GitHub Profile
@TimHeckel
TimHeckel / sif-3-authentication.js
Last active July 17, 2017 20:02
Broker Authentication
const CryptoJS = require("CryptoJS");
const _timestamp = new Date().toISOString();
const _sessionToken = "YOUR_SESSION_TOKEN_HERE";
const _secretKey = "YOUR_SECRET_KEY_HERE";
const _valToHash = _sessionToken + ":" + _timestamp;
const _hash = CryptoJS.HmacSHA256(_valToHash, _secretKey).toString(CryptoJS.enc.Base64);
const _authToken = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(_sessionToken + ":" + _hash));
return "SIF_HMACSHA256 " + _authToken;
Taken from the original thread: https://github.com/jitsi/lib-jitsi-meet/issues/1082#issuecomment-616948457
###Fresh install of jitsu meet with JWT token authentication on Ubuntu Bionic Beaver 18.04
#add dns for meet.mydomain.com to point to public ip for vm
# Open ports on network security group
# 80/tcp
# 443/tcp
# 4443/tcp
# 10000/udp
#include <string>
#include <int>
#include <iostream>
int play() {
std::vector<std::string> players = { "Name1", "Name2", "Name3", "Name4" };
std::string up = "down";
std::string down = "up";
@TimHeckel
TimHeckel / gist:8f10b1d1f6b00717415e0096cd3d16df
Last active July 23, 2023 21:37
python_slatebox_api.py
# you will need to pip install requests
import requests
import hmac
import hashlib
import datetime
import base64
baseUrl = "https://api.slatebox.com"