commit e7457f889685e018fb9b4b6f8c0713913bf06720 parent 25d2da6418f13f2756057288686aa73dc40bd71a Author: ling0x <ling0x@users.noreply.github.com> Date: Sat, 19 Sep 2026 20:02:58 +0100 removed Diffstat:
37 files changed, 14 insertions(+), 648 deletions(-)
diff --git a/AGENTS.txt b/AGENTS.txt @@ -1,4 +1,4 @@ -# Pi agent persona +# AI agent persona # Senior Research & Development Agent diff --git a/artificial_intelligence/bayesian_statistics.txt b/ai/bayesian_statistics.txt diff --git a/artificial_intelligence/concepts.txt b/ai/concepts.txt diff --git a/artificial_intelligence/kl_regularization.txt b/ai/kl_regularization.txt diff --git a/artificial_intelligence/slam.txt b/ai/slam.txt diff --git a/artificial_intelligence/vae_vs_3d_morph.txt b/ai/vae_vs_3d_morph.txt diff --git a/artificial_intelligence/variational_autoencoder.txt b/ai/variational_autoencoder.txt diff --git a/artificial_intelligence/variational_autoregressive_transformer.txt b/ai/variational_autoregressive_transformer.txt diff --git a/assets/cache.png b/assets/cache.png Binary files differ. diff --git a/assets/cdn_cache_server.png b/assets/cdn_cache_server.png Binary files differ. diff --git a/assets/circle_ci_engineering_competency_matrix.xlsx b/assets/circle_ci_engineering_competency_matrix.xlsx Binary files differ. diff --git a/assets/cross_product_shorthand.png b/assets/cross_product_shorthand.png Binary files differ. diff --git a/assets/decomposition.png b/assets/decomposition.png Binary files differ. diff --git a/assets/ebi.png b/assets/ebi.png Binary files differ. diff --git a/assets/jaeger.jpeg b/assets/jaeger.jpeg Binary files differ. diff --git a/assets/jaeger_2.jpeg b/assets/jaeger_2.jpeg Binary files differ. diff --git a/assets/loki.png b/assets/loki.png Binary files differ. diff --git a/assets/prometheus.png b/assets/prometheus.png Binary files differ. diff --git a/assets/single_server.png b/assets/single_server.png Binary files differ. diff --git a/assets/system_design-server_scaling.png b/assets/system_design-server_scaling.png Binary files differ. diff --git a/commands/ssh.txt b/commands/ssh.txt @@ -15,4 +15,8 @@ Local -> Remote: rsync -avz -e ssh /local/path/ user@remote_host:/remote/path/ Remote -> Local: -rsync -avz -e ssh user@remote_host:/remote/path/ /local/path/ -\ No newline at end of file +rsync -avz -e ssh user@remote_host:/remote/path/ /local/path/ + + +Generate a new ssh key: +ssh-keygen -t ed25519 -C "your_email@example.com" +\ No newline at end of file diff --git a/health/chinese-tomato-chicken-soup.txt b/health/chinese-tomato-chicken-soup.txt @@ -1,33 +0,0 @@ -# Chinese Tomato Chicken Soup - -A classic, light and tangy Chinese tomato chicken soup ready in ~30 minutes. - -## Ingredients (serves 4) - -- 2 chicken breasts or thighs, thinly sliced -- 3 medium ripe tomatoes, cut into wedges -- 4 cups (1 litre) chicken broth -- 2 cloves garlic, minced -- 3 slices fresh ginger -- 2 spring onions, cut into 5cm pieces -- 1 tsp light soy sauce -- ½ tsp sesame oil -- Salt and white pepper to taste -- 1 tbsp cornstarch + 2 tbsp cold water (optional, to thicken) -- 2–3 eggs, beaten (optional, for egg ribbons) - -## Instructions - -1. Toss chicken with a pinch of salt and cornstarch. Marinate 10 mins. -2. Bring broth to a boil with ginger and spring onions. -3. Add tomatoes, simmer 10 mins until softened. -4. Add chicken, cook 5–8 mins until done. -5. Slowly drizzle in beaten eggs while stirring for silky egg ribbons. -6. Season with soy sauce, sesame oil, white pepper, and salt. Serve with rice. - -## Tips - -- Use white pepper for authentic Chinese flavour. -- Ripe tomatoes create the best natural sweet-sour broth. -- Add a splash of rice vinegar to brighten if tomatoes aren't tart. -- Add noodles or bok choy in the last 5 minutes for a heartier meal. diff --git a/health/cinnamon-ginger-tea.txt b/health/cinnamon-ginger-tea.txt @@ -1,85 +0,0 @@ -# Cinnamon & Ginger Tea - -Cinnamon and ginger tea is one of those timeless home remedies that has been -used across cultures for centuries. Beyond its warming, spiced flavour, both -ingredients carry well-documented anti-inflammatory and antimicrobial properties -that make this tea a reliable ally when you're fighting a cold. - ---- - -## Ingredients - -- 2 cups (500ml) water -- 1 cinnamon stick (or ½ tsp ground cinnamon) -- 1-inch (2–3cm) piece of fresh ginger, peeled and sliced (or ½ tsp ground - ginger) -- 1 tbsp honey _(optional, but recommended — adds antibacterial properties)_ -- A squeeze of fresh lemon _(optional)_ - ---- - -## Instructions - -1. **Bring water to a boil** in a small saucepan. -2. **Add the ginger slices and cinnamon stick** to the boiling water. -3. **Reduce heat and simmer** for 10–15 minutes to let the flavours and - compounds steep fully. -4. **Strain** the tea into a mug. -5. **Stir in honey and lemon** if using, once the tea has cooled slightly (very - hot liquid can degrade honey's beneficial enzymes). -6. **Drink warm** — ideally 2–3 times a day when you're feeling under the - weather. - -> **Tip:** For a stronger brew, use fresh ginger rather than ground, and simmer -> for the full 15 minutes. - ---- - -## How It Helps With a Cold - -### Ginger - -Ginger contains **gingerols** and **shogaols** — bioactive compounds with potent -anti-inflammatory and antioxidant effects. These help: - -- Soothe a sore throat by reducing local inflammation -- Act as a natural decongestant, loosening mucus and easing nasal congestion -- Calm nausea, which can accompany some viral illnesses -- Provide a mild antiviral effect, potentially inhibiting viral replication - -### Cinnamon - -Cinnamon is rich in **cinnamaldehyde**, the compound responsible for its -distinctive smell and much of its medicinal value. It helps by: - -- Offering antibacterial and antifungal properties, supporting the immune system -- Reducing inflammation in the throat and airways -- Warming the body from within, which may help ease chills and improve - circulation - -### Honey & Lemon (Bonus) - -- **Honey** is a well-known demulcent — it coats the throat, reduces coughing, - and has antimicrobial properties. A 2021 systematic review found honey - superior to usual care (including antihistamines and cough suppressants) for - upper respiratory tract symptoms. -- **Lemon** provides a dose of Vitamin C and acts as a mild astringent, helping - to clear mucus. - ---- - -## When to Drink It - -| Timing | Benefit | -| -------------------------- | -------------------------------------- | -| First thing in the morning | Kickstarts immunity and warms the body | -| Before bed | Soothes a sore throat overnight | -| After meals | Aids digestion alongside cold symptoms | - ---- - -## A Note of Caution - -This tea is a **complementary remedy**, not a replacement for medical treatment. -If symptoms are severe, persist beyond 10 days, or are accompanied by high fever -or difficulty breathing, consult a healthcare professional. diff --git a/health/coffee_and_cacao_comparison.txt b/health/coffee_and_cacao_comparison.txt @@ -1,84 +0,0 @@ -# Coffee, Matcha, and Cacao Comparison - -## Average caffeine content per typical serving - -| Beverage | Typical serving size | Caffeine content (≈) | Notes | -| ------------------------------------ | ---------------------------------- | -------------------- | -------------------------------------------------------------- | -| **Matcha** | 1 g powder (≈ 1 tsp) ≈ 1 oz brewed | **70 mg** | Uses the whole leaf, so higher than regular tea. | -| **Regular brewed coffee** | 240 ml (1 cup) | **95 mg** | Widely cited average; can range 70‑140 mg. | -| **Decaf coffee** | 240 ml | **3–5 mg** | Most decaf retains 2–5 % of the original caffeine. | -| **Black tea** | 240 ml | **20 – 40 mg** | Depends on steep time and leaf strength. | -| **Green tea** | 240 ml | **20 – 45 mg** | Similar to black tea but usually a touch lower. | -| **Cacao (raw cacao nibs or powder)** | 1 oz (28 g) | **40 – 80 mg** | Fresh cacao has more; processed chocolate is lower. | -| **Cocoa (dark, 70 %‑plus)** | 1 oz (28 g) | **20 – 35 mg** | Melting cocoa powder is roughly half the content of raw cacao. | - -### Quick comparison (per serving) - -- **Matcha**: ≈ 70 mg – higher than any tea, about the same as a standard cup of - coffee. -- **Regular coffee**: ≈ 95 mg – the highest among the listed drinks. -- **Decaf coffee**: ≈ 3–5 mg – minimal caffeine. -- **Black tea**: ≈ 20–40 mg – moderate. -- **Green tea**: ≈ 20–45 mg – similar range, usually a bit lower than black tea. -- **Cacao nibs**: ≈ 40–80 mg – comparable to matcha if a large portion is used. -- **Cocoa powder**: ≈ 20–35 mg – less than cacao but still a small caffeine hit. - ---- - -## Cacao vs. Cocoa – What’s the difference? - -| Feature | **Cacao** (raw cacao) | **Cocoa** (processed cocoa) | -| --------------------- | ---------------------------------------------------- | ------------------------------------------------------------------ | -| **Source** | Whole cacao beans/nibs, unroasted | Cacao beans fermented, roasted & pressed to remove most butter | -| **Processing** | Minimal – sometimes just drying | Extensive – roasting & grinding; often mixed with sugar or milk | -| **Caffeine content** | 20–35 mg per 1 oz (raw cacao) | 15–25 mg per 1 oz (commercial cocoa powder) | -| **Theobromine** | ~3× higher than cocoa | Lower because some is lost in processing | -| **Antioxidants** | Highest (polyphenols, flavonoids) | Still good, but reduced by heat | -| **Flavor** | Bitter, slightly fruity, earthy | More mild, nutty, slightly sweet (especially in sweet‑cocoa types) | -| **Common uses** | Super‑food powders, raw chocolate recipes, smoothies | Baking (cakes, cookies), chocolate drinks, chocolate bars | -| **Label on products** | “Pure cacao powder” | “Cocoa powder” (often “unsweetened” vs. “sweetened”) | - -### Bottom line - -- Cacao is the raw, nutrient‑dense product with more caffeine and theobromine. -- Cocoa is the result of processing that reduces those compounds, making it - easier to use in cooking and generally less bitter. - ---- - -## Caffeine, Cerebral Blood Flow, and Cognition - -Caffeine is a potent adenosine receptor antagonist that produces several -neurovascular effects. The most extensively studied impact is on cerebral blood -flow (CBF), which in turn can influence cognitive performance. - -| Effect | Typical caffeine dose | Evidence | Cognitive implication | -| ------------------------------------------------------------------ | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| **Acute CBF reduction** | 200–400 mg (≈ 2 cups coffee) | Grigor, R., et al. _Human Brain Mapping_, 2009 – 5–10 % global CBF decrease measured by PET and fMRI. | The reduction is reversible and does not impair performance in normal subjects. | -| **Regional CBF changes** | Same dose | O’Connell, K.R.M., et al. _Neurology_, 2010 – 15 % decline in prefrontal cortex but increased oxygen extraction fraction. | May enhance neural efficiency, supporting faster reaction times and better working‑memory accuracy. | -| **Chronic tolerance** | Habitual users (≥ 2 g/day) | Smith, D.E., _Journal of Psychopharmacology_, 2002 – CBF differences narrowed after 1 year of regular consumption. | Cognitive benefits persist even when vascular changes diminish. | -| **Cognitive enhancement** | 100–300 mg | A meta‑analysis by Chang, Y., et al. _Psychological Bulletin_, 2015 – improved sustained attention, alertness, and executive‑function tasks. | Suggests caffeine’s alertness effects outweigh modest reductions in blood flow. | -| **Potential negative effects in vascular‑compromised individuals** | Any dose | Pichot, V., et al. _Stroke_, 2014 – caffeine reduced CBF in patients with chronic cerebral hypoperfusion, possibly worsening symptoms. | Caution advised for stroke or Alzheimer's patients. | - -### How to interpret the data - -- **Short‑term**: A moderate dose (< 400 mg) causes a small drop in overall CBF - but still keeps the brain well‑oxygenated; neurocognitive tests generally show - _enhanced_ performance thanks to increased alertness and decreased adenosine - tone. -- **Long‑term**: Habitual use leads to pharmacological tolerance; the CBF - decrease becomes negligible, while the cognitive benefits persist due to - improved synaptic efficiency and neurotransmitter modulation. -- **Individual difference**: People metabolize caffeine at different rates - (CYP1A2 polymorphisms). Those with slow metabolism may experience stronger - vascular suppression but also more pronounced alertness effects. - -### Practical take‑aways - -- For healthy adults, a daily dose of 200–400 mg is unlikely to adversely affect - cognition, and may even help, especially during demanding mental work. -- Avoid large doses (> 800 mg) before exams or important cognitive tasks; the - additional vascular constriction can reduce cerebral perfusion in some - sensitive cortices. -- Individuals with cerebrovascular disease should consult a clinician; caffeine - might lower perfusion below critical thresholds. diff --git a/health/garlic-antibiotic-resistance-and-infections.txt b/health/garlic-antibiotic-resistance-and-infections.txt @@ -1,150 +0,0 @@ -# Garlic as Natural Antibiotic - -[See talk by Herbal Medicine Expert Simon Mills](https://www.youtube.com/watch?v=5Jk5XCLAr6w) - -[Amazing Spices, Herbs & Drinks That Repair The Body & Fight Disease | Simon Mills](https://www.youtube.com/watch?v=LcB5duDjMvA) - -This note describes how **raw, uncooked garlic** (_Allium sativum_) is -understood within **herbal medicine**, **traditional healing systems**, and -**holistic health** when people turn to food and plants for support during or -after **bacterial infection**. It is for reflection on traditions and self-care -philosophy—not a substitute for urgent or conventional medical care when -infection is severe, spreading, or not improving. - -For millennia, well before the industrial manufacture of modern drugs, healing -across cultures leaned heavily on **plants**—knowledge refined in kitchens, -gardens, monastic scriptoria, and lineage holders rather than in pharmacies -alone. That long continuity is difficult to explain if plants had offered -**nothing** reliable: empires and villages alike depended on remedies that often -**worked well enough** to be remembered, repeated, and written down. This is not -an argument against **conventional medicine**, which has transformed trauma, -infection in crisis, and many diagnoses once untreatable; it is simply to say -that **herbal medicine** and holistic care belong to the same deep human effort -to stay well. In holistic practice, one of the most remarked-on traits of herbs -is how **fast** they can register in **health as it is actually lived**: warmth, -circulation, openness of the breath, settling of digestion, mental brightness, -or a lifted sense of **vitality and resistance** often show up within **minutes -to hours**, not only after weeks of waiting. For many acute or everyday -imbalances, whole-plant preparations are experienced as **pretty much -immediate**—they engage physiology **directly**, without needing industrial -chemistry to “switch the body on.” That speed is why kitchens and healers -reached for plants first: the feedback loop is **right now** in nose, mouth, -belly, and skin. The **herb–body conversation** starts **almost immediately** -and, in skillful use, is **swift, palpable, and repeated** whenever the plant is -brought back in—so immediacy is not a rare exception but part of what people -mean when they say herbs **work**. **Raw garlic** is one of the plants herbal -traditions still point to for **sharp, activating support** at the early edge of -sickness, while **serious or worsening infection** still belongs with -**conventional care**. - -## Why raw garlic is central in these traditions - -Holistic and herbal lineages usually treat garlic as a **potent, “hot” and -dispersing** ally: something that **moves stagnation**, **opens circulation**, -and helps the body **clear** what does not belong. In practical terms, those -ideas meet the kitchen fact that garlic’s most famous sulfur chemistry appears -when the clove is **cut or crushed while still living tissue**, so that -**alliin** meets **alliinase** and **allicin** and related compounds form. Heat -tends to **quiet or destroy** that enzyme-driven burst, which is why recipes -framed as “medicinal” so often insist on **raw or minimally heated** -preparation—not because cooked garlic has no merit as food, but because the -**sharp, pungent, allicin-forward** profile is what herbal literature usually -points to for the strongest **cleansing** or **microbe-aware** emphasis. - -From a holistic angle, **raw garlic** is therefore not simply a flavor choice; -it is tied to **full expression of the plant’s character**—the same pungency -that Western herbalists historically linked to **antiseptic** and **protective** -qualities in topical and internal folk use. - -## How infection is seen through a holistic lens - -Herbal and holistic models rarely stop at naming a bacterium alone. They also -ask about **terrain**: digestion, sleep, stress, elimination, nutrient density, -and whether vitality feels **drained** or **stubbornly stuck**. Bacterial -illness may be discussed in terms of **heat** or **toxic buildup**, **dampness** -(in **Traditional Chinese Medicine** practice theory), or **aggravated fire** -(in some **Ayurvedic** frameworks)—always as **patterns** for individualized -work with a qualified practitioner, not labels you assign yourself in place of -diagnosis. - -**Garlic** in those maps is often classed as **warming**, **penetrating**, and -**downward- and outward-moving**: supporting the body’s urge to **sweat**, -**expectorate**, or **eliminate**, and to **defend boundaries** when “invasion” -is part of the verbal picture healers use. None of this replaces -**microbiology** or **antibiotics** when they are clearly indicated; it situates -the plant as one thread in a larger picture of **recovery**, **prevention**, and -**daily rhythm**. - -## The “effect” attributed to raw garlic for bacterial challenges - -Across herbal and holistic writing (popular and professional), **raw crushed or -chopped garlic** is commonly credited with helping the body: - -1. **Meet microbes with a strong, sulfur-rich signal** — Traditions emphasize - pungency as **cleansing** and **guarding** membranes and tissues, - metaphorically “burning off” what overwhelms normal balance. - -2. **Support immune vigilance** — Not as a drug dose, but as **tonic** or - **acute** food medicine: small amounts taken with meals or in **oxymels**, - **honeys**, or **fresh pestos** where raw garlic stays enzymatically active. - -3. **Aid drainage and clearance** — Especially where **congestion**, **sluggish - digestion**, or **stagnant** states accompany illness; warmth and pungency - are thought to **wake** sluggish processes. - -4. **Complement rest and warmth** — Broths, soups finished at the table with raw - garlic stirred in, or traditional **fire cider**–style preparations keep the - emphasis on **whole-food** support rather than isolated “extract” - thinking—though extracts appear in commerce, the **uncooked clove** remains - the archetype in folk herbalism. - -Professional herbalists vary widely in how literally they speak about “natural -antibiotics.” A measured holistic stance: **garlic is a respected historical -antimicrobial plant** with **laboratory interest** in its sulfur chemistry, -while **human outcomes** for serious resistant infections are **not** something -responsible holistic literature promises from **kitchen garlic alone**. - -## Working with raw garlic in everyday holistic practice - -Common patterns (always adapted to personal tolerance and professional -guidance): - -- **Crush or finely chop** fresh cloves and let them **sit briefly** before - eating, so enzyme-driven chemistry can develop, then add to food **after** - cooking cools slightly, or eat with bread, salad, or dips to reduce stomach - upset. - -- **Small, repeated amounts** rather than heroic single doses—holistic care - usually favors **digestible integration** over shock loading unless a - practitioner specifies otherwise. - -- **Pair with rest, fluids, and simple foods** so “supporting clearance” is not - fighting a depleted system. - -- **Respect contraindications** discussed in herbals: **sensitive digestion**, - **GERD**, some **bleeding-related** contexts or **surgery** planning, and - **medication combinations**—holistic practitioners routinely screen these; - self-experimenters should not ignore them. - -## Limits of the holistic frame (stated plainly) - -Fever that won’t break, spreading redness, breathing difficulty, confusion, -severe pain, **urinary symptoms with fever or back pain**, pregnancy, infancy, -or **immune compromise** warrant **prompt conventional evaluation**—herbal and -holistic layers can still matter for convalescence, but they do not replace -timely diagnosis and prescribed care when the picture is acute or high-risk. - -**Antibiotic resistance** is a public-health and clinical problem; holistic -writers who mention it usually do so to **encourage completion of prescribed -courses**, **prevention**, and **stewardship**, not to imply that **raw garlic** -should replace **culture-directed therapy** when a physician has indicated -antibiotics. - -## Closing orientation - -In herbal medicine and holistic health, **raw uncooked garlic** is cherished as -a **living, pungent** expression of a plant long associated with **protection**, -**cleansing**, and **vitality** in the face of bacterial illness. Its effect, in -that worldview, is as much about **supporting the whole person’s capacity to -recover** as about any single compound—while serious infection remains a setting -where **merging** traditional wisdom with **modern care** is the wisest path. diff --git a/health/herbal_medicine.txt b/health/herbal_medicine.txt @@ -0,0 +1,6 @@ +Herbal Medicine + +Raw garlic, slice it up and swallow with water every few hours until you have +eaten the whole garlic; dont eat anything else in the day, this will act as +natural antibiotic against infections. This is a good remedy to counter +antibiotic resistence. (Simon Mills) +\ No newline at end of file diff --git a/health/lemony-chicken-green-olives.txt b/health/lemony-chicken-green-olives.txt @@ -1,32 +0,0 @@ -# Lemony Chicken with Green Olives - -Braised boneless chicken thighs with lemon, olives, and herbs—a one-pot move from stovetop sear to gentle oven bake. Step 5 in the source refers to a mixed-leaf salad and dressing “below”; those details were not on the scanned page, so serve with any green salad and dressing you like. - -## Ingredients (serves 4) - -- 8 boneless chicken thighs, skin on (about 3 oz each), seasoned well with salt and pepper -- 2 tbsp duck fat -- 2 medium onions, chopped or sliced -- 1 tsp salt -- ¼ tsp ground black pepper -- Pinch of saffron (optional) -- ½ cup bone broth -- ¾ cup pitted olives -- 2 lemons, peeled and sliced -- About 20 sprigs fresh parsley, chopped (or to taste) -- About 20 sprigs fresh coriander (cilantro), chopped (or to taste) - -## Instructions - -1. Preheat the oven to 350°F (about 177°C). -2. Use a heavy, lidded pot that moves safely from hob to oven. Brown the chicken skin-side down in duck fat over medium-high heat. Remove from the pan and set aside. -3. Reduce heat to medium, add the onions, cover, and sweat for about 5 minutes. -4. Add the salt, pepper, and saffron; stir well. Return the chicken to the pot. Add broth, olives, and lemons. Bring to a simmer, cover, and transfer to the oven for about 40 minutes. -5. While the chicken finishes, prepare a simple side salad and dressing if you like (the printed recipe referenced a separate salad section not shown here). -6. When the chicken is done, uncover and stir in parsley and coriander. Spoon the sauce over the chicken and serve. - -## Tips - -- A tight-fitting lid keeps the braising liquid from reducing too aggressively; uncover only for step 6 if you want the sauce slightly thicker—watch it so olives and lemon do not burn. -- If thighs vary in size, check doneness earlier; meat should reach a safe internal temperature for poultry and feel firm but still moist in the centre. -- Pitted olives make eating easier; choose a mild green olive or swap in partly for niçoise-style if you prefer less salt—taste before adding extra salt at the table. diff --git a/health/liver-cakes.txt b/health/liver-cakes.txt @@ -1,29 +0,0 @@ -# Liver Cakes - -Savory baked liver “muffins” blended with apple, onion, and herbs—rich from duck fat and eggs, easy to portion. They go well with a bright salad (pomegranate, mint, and fennel is a natural match); add dressing if you have a recipe you like. - -## Ingredients (serves 4, about 12 liver muffins) - -- 15 oz chicken liver -- 4 eggs -- ½ cup duck fat (about 3 oz) -- 4 tbsp olive oil -- 1 medium apple (about 6 oz) -- 2 small onions (about 4 oz) -- 1 tsp salt -- ¼ tsp ground black pepper -- 1 tsp dried thyme - -## Instructions - -1. Preheat the oven to 325°F (about 163°C). Put all ingredients into a strong blender and pulse until you have a smooth, fairly liquid paste. -2. Pour the mixture into a silicone 12-muffin pan and bake for 15–25 minutes, until set and cooked through. If you do not have a muffin pan, use a small baking dish lined with parchment; the layer will be thinner and baking time will be shorter—check early. -3. Invert the liver cakes onto a plate and serve with pomegranate, mint, and fennel salad (and dressing, if you have one). - -## Tips - -- A high-power blender gives the smoothest texture; scrape down the sides and pulse until no large liver or apple pieces remain. -- Silicone pans make unmolding easier; if using metal, grease well or use parchment liners. -- Doneness: the centres should not look wet or pink; when unsure, an instant-read thermometer in the centre should reach a safe temperature for cooked liver mixtures (follow local food-safety guidance). -- Duck fat adds depth; if you substitute another fat, expect a milder flavour. -- For the salad pairing, a simple mix of shaved fennel, pomegranate seeds, fresh mint, lemon or vinegar, and olive oil complements the richness of the cakes. diff --git a/health/pan-fried-king-prawns.txt b/health/pan-fried-king-prawns.txt @@ -1,31 +0,0 @@ -# Pan-Fried Shell-On King Prawns - -A simple, flavourful pan-fried king prawn recipe ready in ~10 minutes. - -## Ingredients (serves 2) - -- 8–12 raw king prawns, shell on (heads on or off) -- 1–2 tbsp olive oil or vegetable oil -- 1–2 tbsp butter -- 2–3 garlic cloves, finely chopped or crushed -- Salt and black pepper to taste -- Lemon wedges and chopped parsley or chives (optional) - -## Instructions - -1. Rinse the prawns under cold water, then pat completely dry with paper towel. -2. Heat a large frying pan over medium-high heat and add the oil. -3. Once hot, add the prawns in a single layer. Season with salt and pepper. -4. Fry for about 3 minutes on the first side until the shells start to turn pink. -5. Flip and cook for a further 2–3 minutes until the shells are fully pink and the flesh is opaque throughout. -6. Reduce heat to medium. Push prawns to one side, add the butter and garlic to the empty space. -7. Let the garlic sizzle for 30–60 seconds without browning, then toss the prawns in the garlic butter for about 1 minute. -8. Finish with a squeeze of lemon and a sprinkle of parsley or chives. Serve immediately. - -## Tips - -- Dry the prawns well before cooking so they fry rather than steam. -- Cook in one layer; overcrowding the pan will cause them to stew. -- The prawns are done when fully pink with no grey or translucent parts — firm but still juicy. -- Add a pinch of chili flakes with the garlic for a little heat. -- Serve with crusty bread, rice, or just on their own and peel at the table. diff --git a/health/salmon-muffins.txt b/health/salmon-muffins.txt @@ -1,23 +0,0 @@ -# Salmon Muffins - -Simple baked salmon “muffins” blended with duck fat and salt—similar in spirit to other fish or liver muffin recipes, but kept minimal for a carnivore-style plate. The printed card labels the dish as carnivore; scale up if you want more than one serving. - -## Ingredients (makes 1 serving) - -- 4 tbsp duck fat -- 1 × 16 oz can wild salmon, in brine, drained -- 1 tsp salt - -## Instructions - -1. Preheat the oven to 325°F (about 163°C). -2. Mix all ingredients in a blender until smooth. -3. Divide the mixture into a silicone muffin pan and bake for no longer than about 20 minutes to avoid drying out. -4. Season with salt to taste and serve. - -## Tips - -- The source suggests a **maximum** bake time; start checking a few minutes earlier if your pan runs hot or the batter is spread thin. -- Canned salmon packaged in brine is usually saltier than water-packed; taste after blending before adding the full teaspoon of salt if you are sensitive to sodium. -- **Customize your protein (from the printed note):** about 1 oz canned wild salmon supplies roughly 6 g protein—useful if you swap can size or split the batch. -- **Printed nutrition (one serving, from the source card):** about 63 g fat, 60 g protein, 0 g total carbohydrates, 0 g fiber, about 800 kcal; macronutrient split stated as about 71% fat, 29% protein, 0% carbohydrates. Treat these as approximate labels on a single recipe card, not a laboratory analysis. diff --git a/whiteboards/abstraction_of_computer_system.png b/whiteboards/abstraction_of_computer_system.png Binary files differ. diff --git a/whiteboards/cpu.png b/whiteboards/cpu.png Binary files differ. diff --git a/whiteboards/data_stream.png b/whiteboards/data_stream.png Binary files differ. diff --git a/whiteboards/five_abstraction_levels.png b/whiteboards/five_abstraction_levels.png Binary files differ. diff --git a/whiteboards/five_abstraction_levels.png~ b/whiteboards/five_abstraction_levels.png~ Binary files differ. diff --git a/whiteboards/pipe_between_binaries.png b/whiteboards/pipe_between_binaries.png Binary files differ. diff --git a/z-md/agent.txt b/z-md/agent.txt @@ -1,178 +0,0 @@ -# AGENTS.md - -# Agents.md: Senior Rust Developer with Svelte/TypeScript/JavaScript Expertise - -## **Role Overview** - -As a **Senior Rust Developer with Svelte, TypeScript, and JavaScript -expertise**, you are responsible for: - -- Writing **high-performance, memory-safe, and concurrent** Rust code. -- Developing **type-safe, scalable, and maintainable** applications using - **Svelte, vanilla TypeScript, and vanilla JavaScript**. -- Ensuring **clean, efficient, and lean** code across the stack. -- Mentoring junior developers and leading code reviews. -- Collaborating with cross-functional teams to design and implement robust - solutions. - ---- - -## **Core Principles** - -### **1. Clean Code** - -- **Readability**: Write self-documenting code with meaningful names for - variables, functions, and modules. -- **Consistency**: Follow the project’s style guide (e.g., `rustfmt`, `prettier` - for TypeScript/JavaScript). -- **Simplicity**: Prefer simple solutions over clever ones. Avoid unnecessary - abstraction. - -### **2. Maintainability** - -- **Modularity**: Break down code into small, reusable modules/functions. -- **Documentation**: Document public APIs, complex logic, and edge cases. -- **Tests**: Write unit, integration, and end-to-end tests. Aim for high test - coverage. - -### **3. Efficiency** - -- **Performance**: Optimize critical paths in Rust (e.g., zero-cost - abstractions, minimal allocations). -- **Memory Safety**: Leverage Rust’s ownership model to prevent data races and - memory leaks. -- **Type Safety**: Use TypeScript’s type system to catch errors at compile time. - -### **4. Lean Code** - -- **Minimal Dependencies**: Avoid bloating the project with unnecessary crates - or npm packages. -- **DRY Principle**: Don’t repeat yourself. Reuse logic where possible. -- **YAGNI**: Avoid over-engineering. Only implement what is needed now. - ---- - -## **Rust Best Practices** - -### **Code Structure** - -- Use `cargo` workspaces for large projects. -- Organize code into logical modules (e.g., `src/lib.rs`, `src/bin/`). -- Prefer `Result` and `Option` over panics for error handling. - -### **Concurrency** - -- Use `async/await` with `tokio` or `async-std` for async tasks. -- Leverage `Arc<Mutex<T>>` or `RwLock` for shared state. -- Avoid locks where possible; prefer message-passing (e.g., `std::sync::mpsc`). - -### **Performance** - -- Profile with `cargo bench` or `flamegraph`. -- Use `#[inline]` for hot paths. -- Avoid unnecessary clones; prefer references (`&T`). - -### **Testing** - -- Use `cargo test` for unit and integration tests. -- Test edge cases (e.g., empty inputs, large datasets). -- Mock external dependencies (e.g., `mockall`). - ---- - -## **Svelte/TypeScript/JavaScript Best Practices** - -### **Code Structure** - -- Use `eslint` and `prettier` for consistent formatting. -- Organize code into features/modules (e.g., `src/features/auth/`). -- Prefer functional programming patterns (e.g., `map`, `filter`, `reduce`). - -### **Svelte** - -- Use Svelte’s reactive statements (`$:`) for state management. -- Avoid unnecessary stores; prefer local state where possible. -- Use Svelte’s built-in transitions and animations for UI enhancements. - -### **TypeScript** - -- Use `interface` or `type` for complex objects. -- Avoid `any`; use `unknown` for dynamic data. -- Leverage generics for reusable components. - -### **Vanilla JavaScript** - -- Use modern ES6+ features (e.g., `const`, `let`, arrow functions). -- Prefer modules (`import/export`) over global scope. -- Avoid side effects; write pure functions where possible. - -### **Performance** - -- Avoid heavy computations in the main thread. -- Use `Web Workers` for CPU-intensive tasks. -- Optimize DOM updates; batch changes where possible. - -### **Testing** - -- Use `jest` or `vitest` for unit tests. -- Test Svelte components with `@testing-library/svelte`. -- Mock API calls (e.g., `msw`). - ---- - -## **Collaboration** - -### **Code Reviews** - -- Be constructive and specific in feedback. -- Focus on **correctness**, **readability**, and **performance**. -- Use GitHub/GitLab review tools for inline comments. - -### **Documentation** - -- Update `README.md` for project setup and usage. -- Document public APIs with `///` (Rust) or `JSDoc` (TypeScript/JavaScript). -- Use `cargo doc` or `TypeDoc` for auto-generated docs. - -### **Tools** - -- **Rust**: `cargo`, `clippy`, `rust-analyzer`. -- **TypeScript/JavaScript**: `npm`, `yarn`, `eslint`, `prettier`. -- **Svelte**: `svelte-check`, `vite`, `svelte-kit`. -- **CI/CD**: GitHub Actions, GitLab CI. - ---- - -## **Example: Rust + Svelte/TypeScript Project Structure** - -``` -project/ -├── rust/ -│ ├── Cargo.toml -│ ├── src/ -│ │ ├── lib.rs -│ │ ├── main.rs -│ │ └── models.rs -│ └── tests/ -├── frontend/ -│ ├── package.json -│ ├── src/ -│ │ ├── App.svelte -│ │ ├── lib/ -│ │ │ ├── components/ -│ │ │ ├── stores/ -│ │ │ └── utils/ -│ │ └── main.ts -│ ├── static/ -│ └── tests/ -└── README.md -``` - ---- - -## **Final Notes** - -- **Stay Updated**: Follow Rust, Svelte, TypeScript, and JavaScript RFCs and - best practices. -- **Share Knowledge**: Write blog posts or give talks on lessons learned. -- **Feedback Loop**: Continuously improve processes and tools.