Skip to content

Instantly share code, notes, and snippets.

View jonasvanderhaegen's full-sized avatar
🏠

Jonas Vanderhaegen jonasvanderhaegen

🏠
View GitHub Profile
@jonasvanderhaegen
jonasvanderhaegen / rust-sccache-r2-caching.md
Created June 28, 2026 12:32
Persistent, cross-project Rust CI caching with sccache + Cloudflare R2 (sccache S3 backend, container legs, cold-vs-warm, cross-repo sharing) — with mermaid diagrams

Persistent, cross-project Rust CI caching with sccache + Cloudflare R2

How to stop a Rust release pipeline from recompiling the world on every run — by caching compiled artifacts in S3-compatible object storage (Cloudflare R2), shared across every run and every repo in an org.

Generic writeup of the technique. Replace <ACCOUNT_ID>, bucket names, and secret names with your own.


The problem

@jonasvanderhaegen
jonasvanderhaegen / nub-migration.md
Created June 28, 2026 13:12
Migrating from pnpm (Corepack) to Nub on macOS — uninstall, optimize, and the Laravel Herd nvm question

Migrating from pnpm (Corepack) to Nub on macOS

Notes from replacing pnpm with Nub — the all-in-one Node.js toolkit (runtime + package manager + Node version manager) — on an Apple Silicon Mac running Laravel Herd. Written June 2026, Nub v0.2.7.

TL;DR

  • pnpm installed via Corepack is not an npm/Homebrew package — you "uninstall" it with corepack disable pnpm, then delete its store at ~/Library/pnpm.
  • Install Nub outside any version-managed Node (Homebrew/curl), or it ends up trapped inside a Node it's supposed to manage.
  • Nub can fully replace nvm, but Laravel Herd's bundled nvm can't be cleanly uninstalled as a separate component — Herd owns it. You can only make it dormant.
@jonasvanderhaegen
jonasvanderhaegen / nub-oddities.md
Created June 28, 2026 19:05
nub v0.2.7 oddities (pnpm -> nub monorepo migration)

nub oddities log

Notes collected while migrating a pnpm monorepo (Astro + Nuxt 4 workspace) to nub as the package manager. Recording these for future reference and upstream bug reports.

Environment

  • nub v0.2.7 (homebrew, /opt/homebrew/bin/nub)
  • node v26.4.0
  • macOS Darwin 25.5.0 arm64
  • Repo: pnpm workspace (pnpm-workspace.yaml with catalog: using npm: aliases, overrides, peerDependencyRules, allowBuilds, patchedDependencies, .pnpmfile.cjs)
@jonasvanderhaegen
jonasvanderhaegen / peppol-belgium-2026.md
Last active June 30, 2026 05:27
Peppol e-invoicing in Belgium (2026): is it free for a small business, and what's the cheapest option?

Peppol e-invoicing in Belgium (2026): is it free, and what's the cheapest way for a small business?

Researched and fact-checked on 30 June 2026. Figures are from official Belgian sources (FPS Finance, einvoice.belgium.be) and provider pages; see Sources at the bottom.

TL;DR

  • You cannot plug into Peppol "directly." Belgian law requires you to send through an approved Peppol service provider (an Access Point). Becoming your own certified Access Point isn't realistic for a single business.
  • The Peppol network itself is free. The only thing that costs money (or not) is the Access Point you send through.
  • There is a genuinely free route: Let's Peppol, a non-profit Access Point, €0, with no published volume limits. Several commercial tools also have free tiers.
  • Cheapest paid: e-invoice.be at ~€0.18/invoice (pay-per-use), or flat subscriptions from ~€1.50 to €5/month.