Skip to content

Instantly share code, notes, and snippets.

@pietheinstrengholt
pietheinstrengholt / jetkvm-self-hosted-cloud-runbook.md
Last active November 28, 2026 10:14
jetkvm-self-hosted-cloud-runbook

Self-Hosted JetKVM Cloud UI + Cloud API + coturn

A practical installation, recovery, and troubleshooting runbook for running your own JetKVM cloud-style experience with:

  • JetKVM's cloud-capable frontend;
  • a self-hosted JetKVM Cloud API;
  • Google OIDC authentication;
  • multi-device registration/adoption;
  • coturn for TURN/TLS fallback;
  • nginx for HTTPS reverse proxying;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pietheinstrengholt
pietheinstrengholt / .env
Last active August 29, 2023 14:48
Azure OpenAI demo using azure-sdk-for-js
OPENAI_API_HOST=https://endpointname.openai.azure.com/
OPENAI_API_KEY=xxxxxxxxxxxxxxxxxxxxxx
AZURE_DEPLOYMENT_ID=text-davinci-003
# sep/16/2022 12:50:26 by RouterOS 7.5
# software id = 79VK-VRAH
#
# model = RB5009UPr+S+
# serial number = HCY08E7SYTZ
/interface bridge
add name=bridge-local
/interface vlan
add interface=ether1 name=vlan1.4 vlan-id=4
add interface=ether1 loop-protect=off name=vlan1.6 vlan-id=6
# sep/15/2022 08:47:33 by RouterOS 7.5
# software id = 79VK-VRAH
#
# model = RB5009UPr+S+
# serial number = HCY08E7SYTZ
/interface bridge
add name=bridge-local
/interface vlan
add interface=ether1 name=vlan1.4 vlan-id=4
add interface=ether1 loop-protect=off name=vlan1.6 vlan-id=6
# Set arguments
SourceSystemName = "AdventureWorks"
FlowName = "SalesLTAddress"
SourceStorageAccount = "synapsepiethein"
SourceContainer = "synapsedata"
SourcePath = "/landingzone/AdventureWorks/"
TargetStorageAccount = "synapsepiethein"
TargetContainer = "synapsedata"
TargetPath = "/processedzone/AdventureWorks"
SinkOperation = "merge"
var Kafka = require('node-rdkafka');
var producer = new Kafka.Producer({
//'debug' : 'all',
'metadata.broker.list': 'atlas-004133bc-3c87-4862-bf9d-b0ea6ae351f5.servicebus.windows.net:9093', //REPLACE
'dr_cb': true, //delivery report callback
'security.protocol': 'SASL_SSL',
'sasl.mechanisms': 'PLAIN',
'sasl.username': '$ConnectionString', //do not replace $ConnectionString
'sasl.password': 'Endpoint=sb://atlas-004133bc-3c87-4862-bf9d-b0ea6ae351f5.servicebus.windows.net/;SharedAccessKeyName=AlternateSharedAccessKey;SharedAccessKey=WrIVbXQnYutxKXsvmfP+Wz4G4OLKHjDtuKH&6=' //REPLACE
var Transform = require('stream').Transform;
var Kafka = require('node-rdkafka'); //See more info: https://github.com/Blizzard/node-rdkafka
var consumer = new Kafka.KafkaConsumer({
//'debug' : 'all',
'metadata.broker.list': 'atlas-004133bc-3c87-4862-bf9d-b0ea6ae351f5.servicebus.windows.net:9093', //REPLACE
'group.id': 'nodejs-cg', //The default consumer group for EventHubs is $Default
'socket.keepalive.enable': true,
'enable.auto.commit': false,
'security.protocol': 'SASL_SSL',