Skip to content

Instantly share code, notes, and snippets.

View DanClarke-io's full-sized avatar

Dan Clarke DanClarke-io

View GitHub Profile
@DanClarke-io
DanClarke-io / config.yml
Created August 5, 2025 12:50
Config for Frigate with TPU
version: "3.9"
services:
frigate:
environment:
- FRIGATE_RTSP_PASSWORD=password
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
# image: blakeblackshear/frigate:stable
image: ghcr.io/blakeblackshear/frigate:stable
@DanClarke-io
DanClarke-io / gist:09ea0f363c3e16587de1e0c29366af43
Last active March 5, 2025 16:17
Unread archive number for WhatsApp Web
// ==UserScript==
// @name Archive number for WhatsApp Web
// @namespace http://tampermonkey.net/
// @version 2025-03-05
// @description Adds the number of unread archive messages to the tab title
// @author You
// @match https://web.whatsapp.com/
// @icon https://www.google.com/s2/favicons?sz=64&domain=whatsapp.com
// @grant none
// ==/UserScript==
@DanClarke-io
DanClarke-io / updatePortainer.sh
Created February 18, 2025 16:28
Update Portainer edge agent script that pulls (and tempoarily stores) the edge key and edge id and passes it to the new docker container.
#!/bin/bash
# Check if a version argument is provided
if [[ -z "$1" ]]; then
echo "Usage: $0 <portainer_agent_version>"
exit 1
fi
VERSION="$1"
TEMP_FILE="/tmp/portainer_edge_credentials"