<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Larvitz Blog - Cooking</title><link href="https://hofstede.it/" rel="alternate"/><link href="https://hofstede.it/feeds/cooking.atom.xml" rel="self"/><id>https://hofstede.it/</id><updated>2026-08-02T00:00:00+02:00</updated><subtitle>FreeBSD, Linux, all things cleanly engineered</subtitle><entry><title>Rice Deserves Better Than a Kochbeutel</title><link href="https://hofstede.it/rice-deserves-better-than-a-kochbeutel/" rel="alternate"/><published>2026-08-02T00:00:00+02:00</published><updated>2026-08-02T00:00:00+02:00</updated><author><name>Larvitz</name></author><id>tag:blog.hofstede.it,2026-08-02:/rice-deserves-better-than-a-kochbeutel/</id><summary type="html">&lt;p&gt;Rice is not the anonymous white ballast next to the actual food. Jasmine, basmati, brown rice, parboiled rice, and the great Italian risotto varieties all behave differently, and the way you cook them matters just as much. A short argument against the Kochbeutel, followed by the rice-cooker method that has served me&amp;nbsp;best.&lt;/p&gt;</summary><content type="html">&lt;hr&gt;
&lt;h2 id="table-of-contents"&gt;Table of&amp;nbsp;Contents&lt;/h2&gt;
&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#table-of-contents"&gt;Table of&amp;nbsp;Contents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#rice-is-not-a-useful-specification"&gt;“Rice” Is Not a Useful Specification&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#grain-length-and-starch"&gt;Grain length and&amp;nbsp;starch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#milling-and-processing"&gt;Milling and&amp;nbsp;processing&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#a-small-field-guide-to-the-rice-shelf"&gt;A Small Field Guide to the Rice&amp;nbsp;Shelf&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#the-method-is-part-of-the-dish"&gt;The Method Is Part of the&amp;nbsp;Dish&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#my-rice-cooker-baseline"&gt;My Rice-Cooker&amp;nbsp;Baseline&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#washing-is-a-dial-not-a-religion"&gt;Washing Is a Dial, Not a&amp;nbsp;Religion&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#buy-better-rice-then-get-out-of-its-way"&gt;Buy Better Rice, Then Get Out of Its&amp;nbsp;Way&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#sources-and-further-reading"&gt;Sources and Further&amp;nbsp;Reading&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;I need to talk about&amp;nbsp;rice.&lt;/p&gt;
&lt;p&gt;This is admittedly unusual territory for a blog that spends most of its time on FreeBSD, routing, self-hosting, and the occasional recipe disguised as a shell script. But rice has been mistreated in Western European kitchens for long enough, and somebody has to open the incident&amp;nbsp;report.&lt;/p&gt;
&lt;p&gt;In Germany, rice is often treated as anonymous white ballast: boil a plastic &lt;strong&gt;Kochbeutel&lt;/strong&gt; in a large pot of water, cut it open, put the pale contents next to the actual food, and deploy enough sauce to make nobody notice. Ugh. The result is technically edible in the same sense that a server answering &lt;span class="caps"&gt;ICMP&lt;/span&gt; is technically in production. It has passed the lowest possible health&amp;nbsp;check.&lt;/p&gt;
&lt;p&gt;&lt;img alt="A bowl of cooked jasmine rice with several uncooked rice varieties and a rice cooker" src="https://hofstede.it/images/2026-08-02-rice-deserves-better.webp" title="Rice deserves to be treated as part of the meal"&gt;&lt;/p&gt;
&lt;p&gt;Rice can be floral, nutty, earthy, creamy, firm, fluffy, chewy, or satisfyingly sticky. It can carry a curry, become the curry, hold together under chopsticks, release enough starch to turn stock into risotto, or dissolve almost completely into congee. Which result you get depends on two decisions that are too often treated as afterthoughts: &lt;strong&gt;which rice you buy and how you cook it&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;There is no single correct way to cook rice. There are, however, plenty of wrong combinations of rice, method, and desired&amp;nbsp;result.&lt;/p&gt;
&lt;h2 id="rice-is-not-a-useful-specification"&gt;“Rice” Is Not a Useful&amp;nbsp;Specification&lt;/h2&gt;
&lt;p&gt;The supermarket shelf is confusing because its labels describe several different properties as if they were alternatives in one flat list. Long-grain and short-grain describe shape. Brown and white describe how much of the grain has been milled away. Parboiled describes processing. Jasmine and basmati describe aromatic types. Arborio, Carnaroli, and Vialone Nano are individual varieties selected for particular cooking&amp;nbsp;behaviour.&lt;/p&gt;
&lt;p&gt;In other words, asking whether a rice is “brown or long-grain” is rather like asking whether a computer is “silver or running FreeBSD.” It can be&amp;nbsp;both.&lt;/p&gt;
&lt;h3 id="grain-length-and-starch"&gt;Grain length and&amp;nbsp;starch&lt;/h3&gt;
&lt;p&gt;Rice is commonly grouped into long-, medium-, and short-grain classes. That is not just cosmetic. As a useful general rule, long grains cook up lighter and more separate, while shorter grains tend to be moister and cling together more readily. Much of that behaviour comes down to the balance of the starches amylose and amylopectin. The taxonomy has fuzzy edges, but it predicts texture far better than the generic word &lt;em&gt;rice&lt;/em&gt; ever&amp;nbsp;will.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Long-grain rice&lt;/strong&gt; is the territory of fluffy pilafs, many curries, and rice bowls. Jasmine and basmati both live here, but they are absolutely not interchangeable in flavour or&amp;nbsp;texture.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Medium- and short-grain rice&lt;/strong&gt; generally becomes more cohesive. That is useful for sushi, rice pudding, paella, and other dishes where separate, dry grains are not the&amp;nbsp;objective.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Glutinous rice&lt;/strong&gt;, also called sticky or sweet rice, is its own gloriously chewy thing. Despite the name, it contains no gluten. It is usually soaked and steamed, not treated like ordinary long-grain&amp;nbsp;rice.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These are tendencies, not a complete database. Thousands of cultivars exist, and reducing all of them to three grain lengths is like classifying operating systems by the colour of their default desktop. Still, it is a better start than Kochbeutel versus&amp;nbsp;loose.&lt;/p&gt;
&lt;h3 id="milling-and-processing"&gt;Milling and&amp;nbsp;processing&lt;/h3&gt;
&lt;p&gt;Brown rice is not a separate botanical family. It is rice with the bran and germ still present after the inedible hull has been removed. That gives it a nuttier flavour and a firmer, chewier texture, but also means it needs more water and considerably more time than the white version of a comparable&amp;nbsp;grain.&lt;/p&gt;
&lt;p&gt;White rice has been milled further to remove the bran and germ. It cooks faster, keeps longer, and covers an enormous range from fragrant Thai jasmine to Japanese short-grain rice. “White rice” tells you very little about how it will&amp;nbsp;behave.&lt;/p&gt;
&lt;p&gt;Parboiled rice is different again. The grain is soaked, steamed, and dried before milling. This changes the starch structure, moves some nutrients inward, and produces firm grains that stay separate and tolerate holding well. That makes it genuinely useful in canteens, prepared foods, and dishes where robust individual grains are wanted. It does not make it a substitute for aromatic jasmine rice, and it certainly does not make the plastic bag a cooking&amp;nbsp;instrument.&lt;/p&gt;
&lt;h2 id="a-small-field-guide-to-the-rice-shelf"&gt;A Small Field Guide to the Rice&amp;nbsp;Shelf&lt;/h2&gt;
&lt;p&gt;This is not exhaustive, but it covers most of the labels likely to confront you in a European&amp;nbsp;shop.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rice&lt;/th&gt;
&lt;th&gt;What it is like&lt;/th&gt;
&lt;th&gt;Where I would use it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Jasmine&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Long-grain, fragrant, soft, and slightly clingy&lt;/td&gt;
&lt;td&gt;Thai and Southeast Asian dishes, curries, fried rice, or simply eaten on its own&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Basmati&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Very long, aromatic grains that cook light and separate&lt;/td&gt;
&lt;td&gt;Indian and Pakistani dishes, biryani, pilaf, chana masala&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Generic long-grain&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Usually mild and separate when cooked well&lt;/td&gt;
&lt;td&gt;Everyday pilaf, rice salad, stuffed vegetables, dishes where the rice should stay in the background&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Japanese short-grain / sushi rice&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Plump, moist, and cohesive&lt;/td&gt;
&lt;td&gt;Sushi, onigiri, donburi, Japanese meals where chopstick-friendly rice is expected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Arborio&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Widely available risotto rice; becomes creamy readily but can turn soft quickly&lt;/td&gt;
&lt;td&gt;Everyday risotto and rice pudding&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Carnaroli&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Risotto rice that holds its centre particularly well while building a creamy sauce&lt;/td&gt;
&lt;td&gt;Risotto where texture matters and a little more tolerance around timing is welcome&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Vialone Nano&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Smaller risotto grain, highly absorbent and creamy&lt;/td&gt;
&lt;td&gt;Looser, all&amp;#8217;onda-style risotto; particularly associated with the Veneto&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Brown rice&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Bran intact, nutty, chewy, slower to cook&lt;/td&gt;
&lt;td&gt;Grain bowls, salads, hearty side dishes, anywhere that texture is welcome&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Parboiled rice&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Firm, separate, resilient, less aromatic&lt;/td&gt;
&lt;td&gt;Batch cooking, rice salads, canteen-scale service, or dishes that benefit from durable grains&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Glutinous rice&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dense, chewy, and properly sticky&lt;/td&gt;
&lt;td&gt;Lao and Thai sticky rice, mango sticky rice, dumplings; normally soaked and steamed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The important part is not memorising the table. It is buying rice for the texture and flavour the meal needs. I would no more make risotto with basmati than I would serve a Thai curry over Arborio. Both are rice, but that is where the useful similarity&amp;nbsp;ends.&lt;/p&gt;
&lt;h2 id="the-method-is-part-of-the-dish"&gt;The Method Is Part of the&amp;nbsp;Dish&lt;/h2&gt;
&lt;p&gt;The Western default is often the pasta method: a large pot of boiling water, rice thrown in, water drained away at the end. It can produce acceptable rice, and in some cuisines excess-water cooking is entirely deliberate. It is also a poor default for good fragrant rice. Aroma and flavour leave with the cooking water, doneness is easy to miss, and the result is frequently wet, tired, and dependent on sauce for a personality&amp;nbsp;transplant.&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;absorption method&lt;/strong&gt; starts with a measured amount of water and keeps it all in the pot. The rice absorbs the water, then finishes in its own steam. A saucepan with a tight lid can do this perfectly well, but a rice cooker makes the process wonderfully repeatable. It applies heat until the free water has been absorbed, switches to warming, and lets the rice finish without demanding burner management from the&amp;nbsp;operator.&lt;/p&gt;
&lt;p&gt;That does not mean every rice belongs in a rice&amp;nbsp;cooker:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Risotto depends on gradually adding stock, stirring, and deliberately drawing starch from the grain into the surrounding&amp;nbsp;liquid.&lt;/li&gt;
&lt;li&gt;Paella needs its wide pan, controlled evaporation, and ideally the toasted layer at the&amp;nbsp;bottom.&lt;/li&gt;
&lt;li&gt;Congee uses a large amount of water on purpose and cooks until the grains break&amp;nbsp;down.&lt;/li&gt;
&lt;li&gt;Glutinous rice is traditionally soaked and&amp;nbsp;steamed.&lt;/li&gt;
&lt;li&gt;A good pilaf begins by coating or toasting the grains in fat before adding measured&amp;nbsp;liquid.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Different methods are not competing answers to one question. They are building different&amp;nbsp;dishes.&lt;/p&gt;
&lt;h2 id="my-rice-cooker-baseline"&gt;My Rice-Cooker&amp;nbsp;Baseline&lt;/h2&gt;
&lt;p&gt;My favourite everyday rice is &lt;strong&gt;Golden Phoenix Thai Hom Mali jasmine rice&lt;/strong&gt;. I buy it in 18 kg bags from the Asian supermarket, which is both more economical and a useful declaration that rice is not an occasional side dish in this&amp;nbsp;household.&lt;/p&gt;
&lt;p&gt;Thai Hom Mali is a fragrant jasmine rice, and this particular one gives me exactly what I want: distinct, fluffy grains with enough cohesion to pick up comfortably with chopsticks. It also tastes of something. That last point should not feel revolutionary, but anyone raised on anonymous boil-in-bag rice will understand why it&amp;nbsp;does.&lt;/p&gt;
&lt;p&gt;Here is the method I have arrived at after a great deal of repetition. Use the same cup for both rice and water; its absolute size does not&amp;nbsp;matter.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Put &lt;strong&gt;1 cup of rice&lt;/strong&gt; into the rice-cooker&amp;nbsp;bowl.&lt;/li&gt;
&lt;li&gt;Add &lt;strong&gt;2 cups of cold water&lt;/strong&gt; and leave it for about &lt;strong&gt;15 minutes&lt;/strong&gt;. Gently move the rice around with your fingers. This is my combined short soak and&amp;nbsp;wash.&lt;/li&gt;
&lt;li&gt;Carefully drain that water away. There is no need to polish every grain under seven ceremonial changes of water; a light wash is enough for the texture I&amp;nbsp;want.&lt;/li&gt;
&lt;li&gt;Add &lt;strong&gt;1.5 cups of fresh water&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Start the rice cooker and leave it alone. No stirring, no lid lifting, no production&amp;nbsp;debugging.&lt;/li&gt;
&lt;li&gt;When the cooker switches to &lt;strong&gt;warm&lt;/strong&gt;, wait at least &lt;strong&gt;15 more minutes&lt;/strong&gt; before opening it. This rest is part of the cooking process, not an inconvenient delay between cooking and&amp;nbsp;eating.&lt;/li&gt;
&lt;li&gt;Open, gently fluff the rice, and&amp;nbsp;serve.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The ratio is a baseline, not a universal constant. Rice variety, age, cooker geometry, and personal preference all move it. If the rice is too soft, reduce the fresh water slightly next time. If the centre is too firm, add a little more. Change one variable, observe the result, and keep the setting that works. Apparently even dinner benefits from controlled&amp;nbsp;experiments.&lt;/p&gt;
&lt;p&gt;The final 15-minute rest is the step I would defend most strongly. Straight after the switch clicks, moisture is still unevenly distributed and the surface grains are wetter than the centre. The warm rest lets that settle. Open too early and you throw away the easiest texture improvement available to&amp;nbsp;you.&lt;/p&gt;
&lt;h2 id="washing-is-a-dial-not-a-religion"&gt;Washing Is a Dial, Not a&amp;nbsp;Religion&lt;/h2&gt;
&lt;p&gt;Few rice topics generate as much rigid advice as washing. “Always rinse until the water is perfectly clear.” “Never wash because you lose starch.” Both are&amp;nbsp;incomplete.&lt;/p&gt;
&lt;p&gt;Washing removes loose surface starch and whatever fine material accumulated during milling and transport. For jasmine rice, a light wash helps prevent a gummy exterior while preserving the slight cling I actually want. For a very separate basmati pilaf, I would rinse more thoroughly. For risotto, I would not rinse at all because the available surface starch is part of the mechanism that makes the dish&amp;nbsp;creamy.&lt;/p&gt;
&lt;p&gt;The desired result decides the procedure. Not a commandment copied from a recipe that used a different grain on a different&amp;nbsp;continent.&lt;/p&gt;
&lt;h2 id="buy-better-rice-then-get-out-of-its-way"&gt;Buy Better Rice, Then Get Out of Its&amp;nbsp;Way&lt;/h2&gt;
&lt;p&gt;A rice cooker does not need Wi-Fi, an app, fuzzy-logic branding, or seventeen menu modes. A basic mechanical cooker with &lt;strong&gt;cook&lt;/strong&gt; and &lt;strong&gt;warm&lt;/strong&gt; is already one of the highest-return appliances in a kitchen. Give it decent rice, a measured amount of water, and enough time to rest, and it will outperform generations of hurried saucepan&amp;nbsp;improvisation.&lt;/p&gt;
&lt;p&gt;More importantly, taste the rice before you bury it. Try jasmine next to basmati with nothing but a little salt. Compare brown rice with its white equivalent. Make the same risotto once with Arborio and once with Carnaroli. Notice what changes. Rice becomes much more interesting the moment you stop treating it as a blank carbohydrate transport&amp;nbsp;layer.&lt;/p&gt;
&lt;p&gt;And if somebody reaches for a Kochbeutel, intervene gently. They may simply never have been served rice that was allowed to have a character of its&amp;nbsp;own.&lt;/p&gt;
&lt;h2 id="sources-and-further-reading"&gt;Sources and Further&amp;nbsp;Reading&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;The International Rice Research Institute on &lt;a href="https://www.knowledgebank.irri.org/ricebreedingcourse/Grain_quality.htm"&gt;grain classes, starch, and aromatic&amp;nbsp;rice&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;The &lt;span class="caps"&gt;FAO&lt;/span&gt; on &lt;a href="https://www.fao.org/4/t0567e/T0567E0h.htm"&gt;milling, parboiling, washing, and&amp;nbsp;cooking&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;The &lt;span class="caps"&gt;EU&lt;/span&gt;&amp;#8217;s geographical-indication profile for &lt;a href="https://agriculture.ec.europa.eu/farming/geographical-indications-and-quality-schemes/geographical-indications-food-and-drink/riso-nano-vialone-veronese-pgi_en"&gt;Riso Nano Vialone Veronese &lt;span class="caps"&gt;PGI&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;The producer&amp;#8217;s overview of &lt;a href="https://www.bscm.co.th/en/product/brand"&gt;Golden Phoenix Thai Hom Mali&amp;nbsp;rice&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><category term="Cooking"/><category term="cooking"/><category term="rice"/><category term="recipe"/><category term="off-topic"/></entry><entry><title>chana_masala.sh: A Recipe as a Shell Script</title><link href="https://hofstede.it/chana_masalash-a-recipe-as-a-shell-script/" rel="alternate"/><published>2026-07-07T00:00:00+02:00</published><updated>2026-07-07T00:00:00+02:00</updated><author><name>Larvitz</name></author><id>tag:blog.hofstede.it,2026-07-07:/chana_masalash-a-recipe-as-a-shell-script/</id><summary type="html">&lt;p&gt;Some years ago a chana masala arrived in a HelloFresh box and never left the household again. It has since been refactored, hardened, and put under version control. Here is the current release: a chickpea curry for hungry &lt;span class="caps"&gt;IT&lt;/span&gt; people, documented the only way I know how - as a bash script with a proper runbook&amp;nbsp;attached.&lt;/p&gt;</summary><content type="html">&lt;hr&gt;
&lt;h2 id="table-of-contents"&gt;Table of&amp;nbsp;Contents&lt;/h2&gt;
&lt;div class="toc"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#table-of-contents"&gt;Table of&amp;nbsp;Contents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#the-source"&gt;The&amp;nbsp;Source&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#the-runbook"&gt;The Runbook&lt;/a&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="#dependencies"&gt;Dependencies&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#prepare_paste"&gt;prepare_paste&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#build_masala"&gt;build_masala&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#add_chickpeas"&gt;add_chickpeas&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#serve"&gt;serve&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="#post-incident-notes"&gt;Post-Incident&amp;nbsp;Notes&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;Every household has one dish that started as an accident and ended up in production. Ours arrived some years ago in a HelloFresh box - yes, the meal-kit subscription, our guilty pleasure phase - as an unassuming chickpea curry. We cooked it once, looked at each other, and knew this thing was not going back into the backlog. The subscription is long gone; the recipe survived the migration. It has been running in our kitchen on a roughly weekly release cadence ever since, patched and tuned along the way like any long-lived service: the spice list grew, the onion-garlic-ginger paste became a hard dependency, and whole spices got promoted from experiment to&amp;nbsp;optional-but-recommended.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Chana masala" src="https://hofstede.it/images/2026-07-07-chana-masala-nerd-edition.jpg" title="Chana masala, fresh from the release pipeline"&gt;&lt;/p&gt;
&lt;p&gt;At some point I did what I do with everything that runs regularly and must not fail: I wrote it down as a script. Not as a joke, or at least not only as a joke. The shell script format turns out to be a genuinely good fit for recipes. It forces you to declare your dependencies up front, it makes the sequencing explicit,&amp;nbsp;and &lt;code&gt;set -euo pipefail&lt;/code&gt; is exactly the attitude you want at the stove: if a step fails, stop and look at it, do not keep stirring and&amp;nbsp;hope.&lt;/p&gt;
&lt;p&gt;So here it is. First the source code, then the runbook for humans who would rather not parse bash while&amp;nbsp;hungry.&lt;/p&gt;
&lt;h2 id="the-source"&gt;The&amp;nbsp;Source&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="ch"&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="nb"&gt;set&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;-euo&lt;span class="w"&gt; &lt;/span&gt;pipefail
&lt;span class="c1"&gt;# ============================================================&lt;/span&gt;
&lt;span class="c1"&gt;# chana_masala.sh&lt;/span&gt;
&lt;span class="c1"&gt;# Version: 1.0.0&lt;/span&gt;
&lt;span class="c1"&gt;# Description: Chickpea masala for hungry IT nerds&lt;/span&gt;
&lt;span class="c1"&gt;# Runtime: approx. 25-30 minutes&lt;/span&gt;
&lt;span class="c1"&gt;# Dependencies: pan, stove, appetite&lt;/span&gt;
&lt;span class="c1"&gt;# ============================================================&lt;/span&gt;

&lt;span class="nv"&gt;PAN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;/dev/pan&amp;quot;&lt;/span&gt;
&lt;span class="nv"&gt;STOVE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;/sys/kitchen/stove&amp;quot;&lt;/span&gt;
&lt;span class="nv"&gt;PLATE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;/home/user/plate&amp;quot;&lt;/span&gt;

&lt;span class="nv"&gt;OIL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;oil or ghee&amp;quot;&lt;/span&gt;
&lt;span class="nv"&gt;CHICKPEAS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;pre-cooked chickpeas&amp;quot;&lt;/span&gt;
&lt;span class="nv"&gt;TOMATOES&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;fresh tomatoes or a can of chopped tomatoes&amp;quot;&lt;/span&gt;
&lt;span class="nv"&gt;BASE_PASTE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;onion-garlic-ginger paste&amp;quot;&lt;/span&gt;
&lt;span class="nv"&gt;TOPPING&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;cilantro || parsley || true&amp;quot;&lt;/span&gt;

&lt;span class="nv"&gt;SPICES&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;ground cumin&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;ground coriander&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;paprika&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;chili powder&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;garam masala&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;turmeric&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;salt&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;pepper&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;bay leaf&amp;quot;&lt;/span&gt;
&lt;span class="o"&gt;)&lt;/span&gt;

&lt;span class="nv"&gt;OPTIONAL_WHOLE_SPICES&lt;/span&gt;&lt;span class="o"&gt;=(&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;whole cumin seeds&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;cinnamon stick&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;green cardamom pods&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;coriander seeds&amp;quot;&lt;/span&gt;
&lt;span class="o"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;prepare_paste&lt;span class="o"&gt;()&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;[1/4] Initializing aroma base...&amp;quot;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;dice&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$TOMATOES&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;/tmp/tomatoes.cubes

&lt;span class="w"&gt;    &lt;/span&gt;peel&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;onions&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;garlic&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;ginger&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;foodprocessor&lt;span class="w"&gt; &lt;/span&gt;--mode&lt;span class="o"&gt;=&lt;/span&gt;paste&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;/tmp/ogg_paste.masala

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="c1"&gt;# Fallback for systems without a food processor:&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="c1"&gt;# knife --fine-chop onions garlic ginger &amp;gt; /tmp/ogg_paste.masala&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Onion-garlic-ginger paste built successfully.&amp;quot;&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;build_masala&lt;span class="o"&gt;()&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;[2/4] Starting masala engine...&amp;quot;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;heat&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;--level&lt;span class="o"&gt;=&lt;/span&gt;high
&lt;span class="w"&gt;    &lt;/span&gt;cat&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$OIL&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;spice&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;in&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;OPTIONAL_WHOLE_SPICES&lt;/span&gt;&lt;span class="p"&gt;[@]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;do&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$spice&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&amp;gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="k"&gt;done&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;sleep&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;15&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="c1"&gt;# seconds: launch the aroma bootloader&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;cat&lt;span class="w"&gt; &lt;/span&gt;/tmp/ogg_paste.masala&lt;span class="w"&gt; &lt;/span&gt;&amp;gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;heat&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;--level&lt;span class="o"&gt;=&lt;/span&gt;medium
&lt;span class="w"&gt;    &lt;/span&gt;sleep&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;180&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="c1"&gt;# sweat gently, do not let it commit (burn)&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;spice&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;in&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;SPICES&lt;/span&gt;&lt;span class="p"&gt;[@]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;do&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$spice&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&amp;gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="k"&gt;done&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;sleep&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;35&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="c1"&gt;# compile spices and release aroma&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;cat&lt;span class="w"&gt; &lt;/span&gt;/tmp/tomatoes.cubes&lt;span class="w"&gt; &lt;/span&gt;&amp;gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;fry&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;--mode&lt;span class="o"&gt;=&lt;/span&gt;sharp
&lt;span class="w"&gt;    &lt;/span&gt;simmer&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;--until&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;tomatoes soft&amp;quot;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;water&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&amp;gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;simmer&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;--mode&lt;span class="o"&gt;=&lt;/span&gt;sauce
&lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;add_chickpeas&lt;span class="o"&gt;()&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;[3/4] Deploying chickpeas...&amp;quot;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;cat&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$CHICKPEAS&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&amp;gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;sauce&lt;span class="w"&gt; &lt;/span&gt;--is-too-thick&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;then&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;a splash of water&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&amp;gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="k"&gt;fi&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;taste&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;adjust&lt;span class="w"&gt; &lt;/span&gt;--with&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;salt,pepper&amp;quot;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;lid&lt;span class="w"&gt; &lt;/span&gt;--close&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;heat&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;--level&lt;span class="o"&gt;=&lt;/span&gt;low
&lt;span class="w"&gt;    &lt;/span&gt;sleep&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;300&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="c1"&gt;# 5 minutes gentle simmer&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;serve&lt;span class="o"&gt;()&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;[4/4] Plating the release candidate...&amp;quot;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;cp&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PAN&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PLATE&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;fresh cilantro&amp;quot;&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&amp;gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PLATE&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;sesame seeds&amp;quot;&lt;/span&gt;&lt;span class="w"&gt;     &lt;/span&gt;&amp;gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PLATE&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;garlic topping&amp;quot;&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&amp;gt;&amp;gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$PLATE&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;serve_with&lt;span class="w"&gt; &lt;/span&gt;--any-of&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;basmati rice&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;roti&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;chapati&amp;quot;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;naan&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;sidecar&lt;span class="w"&gt; &lt;/span&gt;--optional&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;yogurt-mint dip&amp;quot;&lt;/span&gt;

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Status: 200 OK - dinner served successfully.&amp;quot;&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;main&lt;span class="o"&gt;()&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;require&lt;span class="w"&gt; &lt;/span&gt;appetite
&lt;span class="w"&gt;    &lt;/span&gt;require&lt;span class="w"&gt; &lt;/span&gt;pan
&lt;span class="w"&gt;    &lt;/span&gt;require&lt;span class="w"&gt; &lt;/span&gt;stove

&lt;span class="w"&gt;    &lt;/span&gt;prepare_paste
&lt;span class="w"&gt;    &lt;/span&gt;build_masala
&lt;span class="w"&gt;    &lt;/span&gt;add_chickpeas
&lt;span class="w"&gt;    &lt;/span&gt;serve

&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Done. Do not deploy to production without seconds.&amp;quot;&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;

main&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="nv"&gt;$@&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h2 id="the-runbook"&gt;The&amp;nbsp;Runbook&lt;/h2&gt;
&lt;p&gt;The script is complete, but no on-call engineer should have to reverse-engineer dinner from bash. Here is the same procedure in prose, with the default values we converged on after years of operation. Serves two to three, depending on appetite and whether anyone honors the seconds warning at the&amp;nbsp;end.&lt;/p&gt;
&lt;h3 id="dependencies"&gt;Dependencies&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;2 cans of chickpeas (about 480 g drained), or the equivalent pre-cooked from&amp;nbsp;dry&lt;/li&gt;
&lt;li&gt;400 g chopped tomatoes, fresh or from a can - the can is fine, this is a weeknight service, not a tasting&amp;nbsp;menu&lt;/li&gt;
&lt;li&gt;2 onions, 4 cloves of garlic, a thumb-sized piece of&amp;nbsp;ginger&lt;/li&gt;
&lt;li&gt;2 tbsp oil or&amp;nbsp;ghee&lt;/li&gt;
&lt;li&gt;Ground spices: 1 tsp cumin, 1 tsp coriander, 1 tsp paprika, ½ tsp chili powder (tune to your threat model), 1 tsp garam masala, ½ tsp turmeric, 1 bay leaf, salt and&amp;nbsp;pepper&lt;/li&gt;
&lt;li&gt;Optional whole spices: ½ tsp cumin seeds, 1 cinnamon stick, 2-3 green cardamom pods, ½ tsp coriander&amp;nbsp;seeds&lt;/li&gt;
&lt;li&gt;Topping: fresh cilantro (or parsley, if cilantro tastes like soap on your hardware - that is a genetic compile flag, not a character flaw), sesame seeds, crispy&amp;nbsp;garlic&lt;/li&gt;
&lt;li&gt;Sidecar: basmati rice, roti, chapati, or naan; optionally a yogurt-mint&amp;nbsp;dip&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="prepare_paste"&gt;prepare_paste&lt;/h3&gt;
&lt;p&gt;Dice the tomatoes and set them aside. Peel the onions, garlic, and ginger and run them through a food processor until they form a rough paste. No food processor? The documented fallback applies: chop everything as finely as your knife skills allow. The paste is the load-bearing component of this dish; do not skip it in favor of lazily sliced onions. I have tried. The diff is&amp;nbsp;noticeable.&lt;/p&gt;
&lt;h3 id="build_masala"&gt;build_masala&lt;/h3&gt;
&lt;p&gt;Heat the pan on high and add the oil or ghee. If you are using the whole spices, they go in first, alone, for about fifteen seconds - this is the aroma bootloader, and you will smell exactly when it has finished initializing. Then add the onion-garlic-ginger paste, drop the heat to medium, and let it sweat for a good three minutes. The goal is soft and fragrant, not brown. Watch it. This is the step where the dish burns if you go check on something in another&amp;nbsp;terminal.&lt;/p&gt;
&lt;p&gt;Add all the ground spices and stir them through the paste for about half a minute so they toast and bloom in the fat. Then add the tomatoes, fry everything sharply for a moment, and simmer until the tomatoes have collapsed into the sauce. Add a splash of water and let it reduce back to a thick, glossy&amp;nbsp;masala.&lt;/p&gt;
&lt;h3 id="add_chickpeas"&gt;add_chickpeas&lt;/h3&gt;
&lt;p&gt;Drain the chickpeas and stir them in. If the sauce is too thick, loosen it with a little water; if it is too thin, let it simmer uncovered a bit longer. Taste, adjust salt and pepper, then put the lid on, drop the heat to low, and give it five minutes so the chickpeas take on the sauce. This idle loop is not optional. It is the difference between chickpeas in sauce and chana&amp;nbsp;masala.&lt;/p&gt;
&lt;h3 id="serve"&gt;serve&lt;/h3&gt;
&lt;p&gt;Plate over basmati rice or with fresh roti, chapati, or naan. Top with fresh cilantro, sesame seeds, and crispy garlic. A yogurt-mint dip on the side handles any chili overprovisioning&amp;nbsp;gracefully.&lt;/p&gt;
&lt;p&gt;Status: 200 &lt;span class="caps"&gt;OK&lt;/span&gt;.&lt;/p&gt;
&lt;h2 id="post-incident-notes"&gt;Post-Incident&amp;nbsp;Notes&lt;/h2&gt;
&lt;p&gt;A few operational learnings from years of running this in&amp;nbsp;production:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The whole spices are marked optional in the script but I no longer build without them.&lt;/strong&gt; The fifteen seconds of cumin seeds and cardamom in hot ghee changes the whole flavor baseline. Consider them optional the way monitoring is&amp;nbsp;optional.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;It reheats better than it serves fresh.&lt;/strong&gt; Like most curries, the flavor keeps integrating overnight. Cook double, and tomorrow&amp;#8217;s lunch is a zero-effort deployment from the&amp;nbsp;fridge.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The chili powder is the only genuinely environment-specific value.&lt;/strong&gt; Everything else in the spice array has been stable for years; the chili gets overridden per&amp;nbsp;audience.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;HelloFresh deserves the credit for the initial commit.&lt;/strong&gt; We forked the recipe, rewrote most of it, and stopped paying the subscription fee, which I suppose makes this the classic open-core story told from the other side. But the upstream project shipped a genuinely good v0.1, and this post is the attribution&amp;nbsp;notice.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Do not deploy to production without&amp;nbsp;seconds.&lt;/p&gt;</content><category term="Cooking"/><category term="cooking"/><category term="recipe"/><category term="bash"/><category term="off-topic"/></entry></feed>