Skip to content

Instantly share code, notes, and snippets.

@warwickchapman
warwickchapman / dynDns.rsc
Last active April 10, 2025 17:22
Mikrotik RouterOS 7 Cloudflare DNS Record Update
# Prerequisites
# - A Cloudflare account and a domain managed by Cloudflare.
# - The Zone ID of your domain in Cloudflare. You can find this in the Cloudflare dashboard under your domain's overview tab.
# - An API token with permissions to edit DNS records. You can create this in the Cloudflare dashboard under "My Profile" > "API Tokens".
# Creating an API Token in Cloudflare
# - Go to Cloudflare Dashboard > My Profile > API Tokens.
# - Click "Create Token".
# - Use the "Edit zone DNS" template.
# - Set permissions for the specific zone (domain) you wish to update via DDNS.
@Yrlish
Yrlish / cf-worker-proton-wkd.js
Last active March 30, 2025 00:14
CloudFlare worker proxy for ProtonMail WKD
// 1. Create a worker in the dashboard and paste the following code into it
// 2. Replace all references to example.com to your domain, add more domains if needed
// 3. Deploy the worker
// 4. Setup routes in the dashboard for:
// - example.com/.well-known/openpgpkey/*
// - openpgpkey.example.com/.well-known/openpgpkey/*
// - (apply above for additional domains too)
// 5. Verify that it is working with https://metacode.biz/openpgp/web-key-directory
export default {