Skip to content

Instantly share code, notes, and snippets.

View henrikenblom's full-sized avatar

Henrik Enblom henrikenblom

  • Stockholm, Sweden
View GitHub Profile
@cbmeeks
cbmeeks / sid.txt
Last active November 10, 2025 19:00
SID File Format
===========================
SID FILE FORMAT DESCRIPTION
===========================
AUTHORS:
Michael Schwendt (PSID v1 and v2)
Simon White (PSID v2NG, RSID)
Dag Lem (PSID v2NG)
Wilfred Bos (PSID v3, RSID v3, PSID v4, RSID v4)
@MartinRogalla
MartinRogalla / dynamic-dns.sh
Last active September 6, 2019 16:59
Google Cloud Dynamic DNS - Update if current IP mismatches DNS entry.
#!/bin/bash
# Google Cloud Dynamic DNS
# Run this under some kind of cron/timer job.
IP="$(dig +short myip.opendns.com @resolver1.opendns.com)"
ZONE_NAME="com-yourdomain"
DNS_NAME="dynamic-dns-entry.yourdomain.com"
gcloud dns record-sets list -z=$ZONE_NAME --name=$DNS_NAME --type=A --format='value(name,type,ttl,rrdatas)' | while read name type ttl data ; do
LAST_IP=$data