Skip to content

Instantly share code, notes, and snippets.

@levid0s
levid0s / openwrt_ddns_porkbun_updater.sh
Last active November 21, 2025 20:35
OpenWRT DDNS Porkbun Updater
set -e
set -u
__usage="
$0
OpenWRT DDNS updater ('ddns-scripts') script for the Porkbun API.
The script has been extended to support running it directly (eg. via cron) without having to install the \`ddns-scripts\` opkg package.
Suggested script path: /usr/bin/ddns-update-porkbun.sh
@fffonion
fffonion / setup-dashbutton.py
Created September 28, 2019 22:32
Setting up dash button without Amazon App
import requests
import re
import sys
# Initial work from: https://mpetroff.net/2016/07/new-amazon-dash-button-teardown-jk29lp/
h = requests.Session()
BASE_URL = "http://192.168.0.1"
@martinlroth
martinlroth / relay.py
Last active February 4, 2025 18:26
Simple relay control for the Denkovi USB Relay Module 4 Channels, for Home Automation - v2
#!/usr/bin/python
#
# Simple relay control for the Denkovi USB Relay Module 4 Channels, for Home Automation - v2
# http://denkovi.com/usb-relay-board-four-channels-for-home-automation-v2
#
# Better tools are offered on http://denkovi.com but they need an internet
# connection, and are not open source.
#
__author__ = "Martin Roth"