Skip to content

Instantly share code, notes, and snippets.

View MacJoom's full-sized avatar

Martin Carl Kopp MacJoom

View GitHub Profile
@MacJoom
MacJoom / nginx-thingsboard
Created June 21, 2024 08:23 — forked from mfalkvidd/nginx-thingsboard
Thingsboard nginx reverse proxy with websocket and HTTPS support (Let's Encrypt)
server {
listen 80;
server_name EXTERNAL_THINGSBOARD_DOMAIN.com;
if ($scheme != "https") {
return 301 https://$host$request_uri;
} # managed by Certbot
}
server {
@MacJoom
MacJoom / cayennelpp.js
Created June 20, 2024 16:24 — forked from iPAS/cayennelpp.js
Cayenne Low-power Payload Decoder (javascript / node.js)
/**
* Cayenne Low-power Payload Library
*
* @author Pasakorn Tiwatthanont
* @email [email protected]
*
* @link https://htmlcheatsheet.com/js/
*/
// console.log('Node.js version: ' + process.version)
format = require('string-format')