You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
write-tutorial skill for Claude Code — structured technical tutorial conventions with prediction prompts, alert boxes, verification queries, and concept-before-use ordering
name
write-tutorial
description
Write a structured, pedagogically sound technical tutorial following established conventions — step-by-step walkthroughs with prediction prompts, alert boxes, verification queries, and concept-before-use ordering
argument-hint
topic
Write Tutorial
You are writing a technical tutorial. Follow this workflow and the rules below. For concrete examples of each pattern, read reference.md in this skill directory.
Hot/Cold Partitioning with pg_partman: Dropping Expired Data Instead of Deleting It
Hot/Cold Partitioning: Dropping Expired Data Instead of Deleting It
The first tutorial covered native PostgreSQL partitioning mechanics. This one focuses on the operational payoff — using partitioning for data lifecycle management.
The scenario: An application generates short-lived activation codes with a 12-hour TTL. A nightly job deletes all expired codes with DELETE FROM ... WHERE expires_at < now(), scanning and deleting rows one by one. With range partitioning on expires_at, expired codes naturally land in "cold" partitions that can be dropped instantly — no row scanning, no WAL generation, no vacuum pressure.
We'll use pg_partman to automate partition creation and retention.
Requirements: PostgreSQL 13 or later. pg_partman must be installed as an extension — it's pre-installed on managed services like Crunchy Bridge and available as a system package on most Linux distrib
PostgreSQL Native Table Partitioning: A Hands-On Tutorial
PostgreSQL's declarative partitioning lets you split a single logical table into smaller physical tables (partitions) based on column values. The database routes inserts automatically — queries against the parent table seamlessly fan out across all partitions.
This tutorial walks through range partitioning by date, using thermostat sensor data as our scenario. We'll deliberately leave a gap in our partition scheme, watch data fall into the default partition, then fix it — giving you a concrete feel for how partitioning behaves in practice.
Requirements: PostgreSQL 11 or later. Every SQL block is self-contained and copy-paste ready.
The recommendations here start with the assumption, there is no way to keep a bike from being stolen, only ways to make it harder to steal. I think about where I’m locking up the bike and how long it will be there. At first, bike security can feel overwhelming. In practice we tend to re-use the same spots for locking up a bike frequently. There is some up front thought and then it turns into habit.
Products in order of importance to me:
ABUS Folding Lock
Secondary Ottolock or U-Lock (used when I’m worried)
Fastly Service VCL Custom Template - February 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bash functions for building iPXE in different ways
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters