Skip to content

Instantly share code, notes, and snippets.

View matrixflut_viewer.py
#!/usr/bin/python3
import paho.mqtt.client as mqtt
from sty import fg, bg, rs
width = height = 5
mqtt_server = "test.mosquitto.org"
mqtt_topic = "matrixflut"
def on_connect(client, userdata, flags, rc):
print("Connected (rc={})".format(rc))
@Kartoffel
Kartoffel / M5_IR_MQTT.ino
Created Apr 11, 2020
M5 Atom MQTT to IR bridge for controlling Edifier speakers
View M5_IR_MQTT.ino
// Compile for ESP32 Pico Kit, upload rate 115200 baud
#include <Arduino.h>
#include <WiFi.h>
#include <PubSubClient.h>
#include <IRremoteESP8266.h>
#include <IRsend.h>
#define MQTT_SERVER "10.0.1.3"
#define MQTT_TOPIC_DEBUG "niek/debug/"
#define MQTT_TOPIC_BASE "niek/speakers/"
View keybase.md

Keybase proof

I hereby claim:

  • I am kartoffel on github.
  • I am kartoffel (https://keybase.io/kartoffel) on keybase.
  • I have a public key ASCbsREMOHC4s_x6f_Wlhu7POwV519nIJoc2Fv1b4vW_qgo

To claim this, I am signing this object:

@Kartoffel
Kartoffel / backup-etherpad-tree.sh
Created Oct 17, 2017
Backup etherpad pads, starting from one pad that contains the URLs of the other pads to backup
View backup-etherpad-tree.sh
curl -o badge https://pad.sha2017.org/p/badge/export/txt
for i in $(cat badge | grep -Po '(?<=pad.sha2017.org\/p\/)(.*)'); do curl -o $i "https://pad.sha2017.org/p/$i/export/txt"; done
You can’t perform that action at this time.