Til
-
tilstream
A static site generator for Today-I-Learned notes. Takes a folder of short markdown files and builds a searchable, RSS-friendly site.
-
TIL: sqlite3 .backup is way better than .dump
The online backup API produces a consistent copy without locking writers.
-
TIL: pytest's xfail strict flag fails if the test unexpectedly passes
Marking a test @pytest.mark.xfail(strict=True) fails CI if the bug got fixed and nobody un-xfailed.
-
TIL: Go race detector can cause tests to pass that would fail in production
The race detector slows things down enough to hide some timing-dependent failures.
-
TIL: GitHub Actions concurrency.cancel-in-progress
One line of workflow YAML stops CI from wasting minutes on outdated commits.
-
TIL: DuckDB's COPY reads from S3 URLs directly
Point DuckDB at an s3:// URL and it will read Parquet files without downloading them first.
-
TIL: pg_try_advisory_lock for cheap, per-key mutual exclusion
Turns out Postgres has application-level locks you can use without a lock table.
-
TIL: SQLite has RETURNING now
SQLite 3.35 added RETURNING, so you can get the inserted row back in one round-trip.
-
TIL: Grafana has a 'custom all value' for variables
When $var=All, Grafana was sending literally the string 'All' to my query. There's a setting for that.
-
TIL: histogram_quantile needs a rate, not a raw counter
Forgetting the rate() inside histogram_quantile gives you weird-looking percentiles. Here's why.
-
TIL: span events are the right place for timestamped annotations
Logs-within-a-span are a first-class OpenTelemetry concept and I had been putting them in attributes.
-
TIL: OpenTelemetry has a separate 'Baggage' concept
Span attributes vs baggage — they're different and I had been confusing them.
-
TIL: pg_stat_user_tables.n_mod_since_analyze is a thing
Shows exactly how many rows have changed since the last ANALYZE. Great for 'do I need to analyze?'
-
TIL: just has variadic positional arguments
The +args and *args syntax in just is the thing I've been wanting.
-
TIL: fzf's --preview can run arbitrary shell commands
The --preview flag is way more flexible than I realized.