Skip to content

Instantly share code, notes, and snippets.

{% for record in rpz_bad_domains %}
{{ record }}
{{ record.encode('punycode') }}
{{ record.encode('punycode').decode('punycode') }}
{{ record.encode('idna') }}
{{ record.encode('idna').decode('idna') }}
{% endfor %}
@teadur
teadur / README.md
Created August 22, 2024 17:47 — forked from mattmahn/README.md
Terraform: Get current Git commit SHA

This will return the full Git commit SHA of whichever branch is currently checkedout.

Dump the snippet into terraform console (run from within a Git repo) to see for yourself.

@teadur
teadur / README.md
Created July 14, 2025 15:27 — forked from btamas/README.md
Mikrotik Dynamic DNS (DDNS) update with Google Cloud (GCP) function on Google Cloud DNS
  1. Generate a service account with DNS admin rights and download the json.
  2. Generate a service for unauthenticated calls
  3. Create a cloud function and upload the index.js, package.json and service acount json
    • 128MB RAM is enough
    • HTTP trigger should be set
    • Unauthenticated call should be set
      1. service account should be selected
    • Add the following environment variables:
      • PROJECT_NAME: name of the project, where the DNS is defined
  • RECORD_NAME: name of the DNS record, what should be updated. A . is required in the end, like: home.example.com.
@teadur
teadur / COHORTS.md
Last active September 1, 2026 06:00
chess.com /stats endpoint: failure rates by cohort

chess.com /stats failure rates by cohort

22 cohorts · 49,222 users · 3,728,760 checks · 13,967 state changes

Generated 2026-09-01 06:00 UTC. Each cohort is a differently-sampled set of chess.com accounts, polled on a schedule; failing is how many of them the stats endpoint currently 404s.

| | list | users | failing | rate | churn | recovered | sampled from |