Skip to content

Instantly share code, notes, and snippets.

willglynn /
Last active March 1, 2023 03:38
Cloudflare Tunnels/`cloudflared` on Mikrotik RouterOS 7


In their own words:

Cloudflare Tunnel provides you with a secure way to connect your resources to Cloudflare without a publicly routable IP address. With Tunnel, you do not send traffic to an external IP — instead, a lightweight daemon in your infrastructure (cloudflared) creates outbound-only connections to Cloudflare’s edge. Cloudflare Tunnel can connect HTTP web servers, SSH servers, remote desktops, and other protocols safely to Cloudflare. This way, your origins can serve traffic through Cloudflare without being vulnerable to attacks that bypass Cloudflare.

Beyond cyberattacks, this can be particularly useful if you're behind CGNAT, e.g. on cellular or satellite, and you want to make services on or behind your router available to the broader world.


willglynn / XMC4700-4800 pad class mismatches.csv
Created June 26, 2022 00:12
XMC4700-4800 pad class mismatches
View XMC4700-4800 pad class mismatches.csv
Pin SVD Manual
P7.0 A1+ A2
P7.1 A1+ A2
P7.2 A1+ A2
P7.4 A2 A1+
P7.5 A2 A1+
P7.6 A2 A1+
P7.9 A2 A1+
P8.0 A1+ A2
P8.1 A1+ A2
View cargo flash
Running `target/debug/cargo-flash --log trace --chip XMC4800-F100x2048 --elf …/blink`
DEBUG cargo_flash > Changed working directory to .
Flashing …/blink
DEBUG probe_rs::config::registry > Searching registry for chip with name XMC4800-F100x2048
DEBUG probe_rs::config::registry > Exact match for chip name: XMC4800-F100x2048
DEBUG probe_rs::probe::cmsisdap::tools > Searching for CMSIS-DAP probes using libusb
DEBUG probe_rs::probe::cmsisdap::tools > Found 0 CMSIS-DAP probes using libusb, searching HID
DEBUG probe_rs::probe::cmsisdap::tools > Found 0 CMSIS-DAP probes total
DEBUG jaylink > libusb
DEBUG jaylink > libusb has capability API: true
willglynn / gist:2fdc8fce3542dff77fa5e0cb79cbbf2f
Created June 13, 2022 03:37
probe-rs XMC4800 "Unsupported breakpoint comparator" output
View gist:2fdc8fce3542dff77fa5e0cb79cbbf2f
% cargo run -- -vv --chip XMC4800-F100x2048 path/to/blink
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
Running `target/debug/probe-run -vv --chip XMC4800-F100x2048 path/to/blink`
(HOST) DEBUG vector table: VectorTable { initial_stack_pointer: 2003fff0, hard_fault: 8001495 }
└─ probe_run::elf @ src/
(HOST) DEBUG Searching registry for chip with name XMC4800-F100x2048
└─ probe_rs::config::registry @ …/probe-rs/probe-rs/src/config/
(HOST) DEBUG Exact match for chip name: XMC4800-F100x2048
└─ probe_rs::config::registry @ …/probe-rs/probe-rs/src/config/
willglynn / poppler-0.74.0.patch
Created March 14, 2019 05:03
Add WPTypographicSymbols support
View poppler-0.74.0.patch
diff --git a/poppler/ b/poppler/
index 41b8bb9..99fb36d 100644
--- a/poppler/
+++ b/poppler/
@@ -1242,11 +1242,15 @@ Gfx8BitFont::Gfx8BitFont(XRef *xref, const char *tagA, Ref idA, GooString *nameA
// pass 1: use the name-to-Unicode mapping table
missing = hex = false;
bool isZapfDingbats = name && name->endsWith("ZapfDingbats");
+ bool isWPTypographicSymbols = name && name->endsWith("WPTypographicSymbols");
for (int code = 0; code < 256; ++code) {
View Factorio GPU selection.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 8 columns, instead of 6. in line 9.
Version,Release Date,Platform,Variant,Executable MD5,GUID,NvOptimusEnablement,AmdPowerXpressRequestHighPerformance
willglynn / gist:3395441349765803a5b28657a782c719
Created July 28, 2016 17:20
ec2-bundle-and-upload-image example
View gist:3395441349765803a5b28657a782c719
$ wget -q
$ ec2-bundle-and-upload-image -image coreos_production_ami_image.bin.bz2 -s3-bucket totally-not-official-ami -s3-prefix ec2-bundle-and-upload-image/ -name "CoreOS-stable-1068.8.0"
2016/07/28 12:08:19 Using "-region us-east-1" to match S3 bucket
2016/07/28 12:08:19 Using "-account 123456789012" based on active credentials
2016/07/28 12:08:19 Determining size of compressed image...
2016/07/28 12:09:18 Compressed image is 4756340736 bytes
2016/07/28 12:09:18 Writing to s3://totally-not-official-ami/ec2-bundle-and-upload-image/CoreOS-stable-1068.8.0.part.0
2016/07/28 12:09:23 Writing to s3://totally-not-official-ami/ec2-bundle-and-upload-image/CoreOS-stable-1068.8.0.part.1
2016/07/28 12:09:28 Writing to s3://totally-not-official-ami/ec2-bundle-and-upload-image/CoreOS-stable-1068.8.0.part.2
2016/07/28 12:09:31 Writing to s3://totally-not-official-ami/ec2-bundle-and-upload-image/CoreOS-stable-1068.8.0.part.3
willglynn / full-output.txt
Created July 26, 2016 16:24
CoreOS oem/ami/ output
View full-output.txt
$ VERSION=1068.8.0
$ oem/ami/ -V $VERSION -g stable -u$VERSION/coreos_production_ami_image.bin.bz2 -B totally-not-official-ami -c /home/ec2-user/secrets/cert.pem -k /home/ec2-user/secrets/pk.pem -a <123456789012> -X
Building AMI in zone us-east-1e
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 255M 100 255M 0 0 122M 0 0:00:02 0:00:02 --:--:-- 122M
willglynn / gist:9dfc050b95e72f9fc18c44146aaf0aa4
Last active April 17, 2016 02:54
HTC Vive shipments going out of order
View gist:9dfc050b95e72f9fc18c44146aaf0aa4

Tuesday, April 5

The HTC Vive launched.

Daniel O'Brien – HTC VP of VR and HTC Vive Head – had been fielding complaints of out-of-order shipping all day, at one point stating:

@Drehmini we don't choose a region in US to deploy shipments to. We ship in the order which we received.

The @htcvive Twitter account insisted the same: