I hereby claim:
- I am tiefpunkt on github.
- I am tiefpunkt (https://keybase.io/tiefpunkt) on keybase.
- I have a public key whose fingerprint is AAA4 5709 504C BDF4 4E97 A421 59B4 F38F 3CB0 F081
To claim this, I am signing this object:
| function Decoder(bytes, port) { | |
| // Your "old" TTN v2 decoder function | |
| } | |
| // add other functions (Converter, Validator) here if you used them. If you didn't you can just skip them. | |
| function decodeUplink(input) { | |
| var data = input.bytes; | |
| var valid = true; |
| # Run Pretix in Docker, with DB and Redis also as docker containers | |
| # This exposes Pretix on port 8080 without TLS. | |
| # Make sure to provide a reverse proxy for proper TLS termination. | |
| # DO NOT RUN WITHOUT TLS! | |
| # Create local directories for the DB and Pretix itself | |
| mkdir -p /data/pretix/{db,config,data} | |
| touch /data/pretix/config/pretix.cfg | |
| chown -R 15371:15371 /data/pretix/{config,data} |
| # pip install requests | |
| import requests | |
| import json | |
| url_template = 'https://api.foursquare.com/v2/users/self/checkins?limit=250&oauth_token={}&v=20131026&offset={}' | |
| # If you navigate to https://developer.foursquare.com/docs/explore, Foursquare | |
| # will generate an OAuth token for you automatically. Cut and paste that token | |
| # below. | |
| oauth_token = "" |
| #define IN_PIN 13 | |
| #define ON HIGH | |
| #define OFF LOW | |
| #define IGNORE_THRESHOLD 500 | |
| long starttime, duration; | |
| int curr_status, prev_status; | |
| #include <ESP8266WiFi.h> | |
| #include <ESP8266WiFiMulti.h> |
| #!/bin/bash | |
| confirm () { | |
| # call with a prompt string or use a default | |
| read -r -p "${1:-Are you sure? [y/N]} " response | |
| case $response in | |
| [yY][eE][sS]|[yY]) | |
| true | |
| ;; | |
| *) |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| # ------------------------------------------------------ | |
| # | |
| # MQTT WS Proxy with TLS support | |
| # | |
| # By Severin Schols (@tiefpunkt) | |
| # Based on https://gist.github.com/fiorix/1878983 | |
| # ------------------------------------------------------ |
| !+8::Send ™ |
| #!/bin/python | |
| import serial | |
| from datetime import datetime | |
| import eeml | |
| import eeml.datastream | |
| API_KEY = 'YOUR_COSM_API_KEY' | |
| API_URL = 102285 |
From more information on iodine, read http://code.kryo.se/iodine/README.html