Skip to content

Instantly share code, notes, and snippets.

View joshspicer's full-sized avatar
🌶️
¯\_(ツ)_/¯

Josh Spicer joshspicer

🌶️
¯\_(ツ)_/¯
View GitHub Profile
@heygambo
heygambo / lwp-cloudflare-dyndns.sh
Created March 17, 2020 05:21
Cloudflare as Dynamic DNS (revised)
#!/bin/bash
# Cloudflare as Dynamic DNS
# From: https://letswp.io/cloudflare-as-dynamic-dns-raspberry-pi/
# Based on: https://gist.github.com/benkulbertis/fff10759c2391b6618dd/
# Original non-RPi article: https://phillymesh.net/2016/02/23/setting-up-dynamic-dns-for-your-registered-domain-through-cloudflare/
# Fixed and documented version by Christian Gambardella (https://gambo.io)
# 1. Create a cloudflare account
# 2. Create a zone and a record with any ip address.
# It will be updated by the script.
@joshspicer
joshspicer / boot_alert.sh
Last active July 24, 2022 19:41
[OpenWrt] Telegram alert when a new wireless device associates with access point. (http://spcr.me/openwrt-alert)
#!/bin/sh
# Alerts via telegram when a new device joins OpenWRT wireless interface
# write-up at: spcr.me/openwrt-alert
#
# ~ note ~
# Call from in /etc/rc.local
TELEGRAM="https://api.telegram.org/bot<YOUR_API_KEY>/sendMessage?chat_id=<YOUR_CHAT_ID_HERE>&text="
@m33x
m33x / hass.js
Last active April 14, 2025 12:31
Simple Home Assistant (HASS) iOS Widget via Scriptable App
let widget = await createWidget();
if (!config.runsInWidget) {
await widget.presentSmall();
}
Script.setWidget(widget);
Script.complete();
async function createWidget(items) {
@billchurch
billchurch / rtl_433_proxmox_docker_lxc.md
Last active February 1, 2025 02:53
rtl_433 proxmox lxc and docker