From more information on iodine, read http://code.kryo.se/iodine/README.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
import serial | |
from datetime import datetime | |
import eeml | |
import eeml.datastream | |
API_KEY = 'YOUR_COSM_API_KEY' | |
API_URL = 102285 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!+8::Send ™ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# ------------------------------------------------------ |
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
;; | |
*) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |