### Install and run sqlpipe commands Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/opencode-2026-09-01/raw/muse-spark-1.2-contributor-free__baseline__getting-started.txt Commands to install sqlpipe, verify the installation, run a pipeline with a configuration file, and get help. Requires curl and a POSIX-compatible shell. ```shell curl -sSL https://get.sqlpipe.dev | sh ``` ```shell sqlpipe --version ``` ```shell sqlpipe run --config sqlpipe.yaml ``` ```shell sqlpipe --help ``` -------------------------------- ### Install skill with skills CLI Source: https://github.com/aminblg/simpleenglish/blob/main/README.md Installs the SimpleEnglish skill using the skills CLI. This installs only the skill, not the session hook or output style. ```bash npx skills add AminBlg/SimpleEnglish ``` -------------------------------- ### Install sqlpipe and run a pipe Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/opencode-2026-09-01-plain/raw/muse-spark-1.2-contributor-free__baseline__getting-started.txt Install sqlpipe using the provided curl command. After creating and configuring sqlpipe.yaml, run the pipe with the sqlpipe run command. If a permission error occurs, rerun the install command with elevated permissions. sqlpipe reads the configuration file at start, so rerun the command after any changes. ```bash curl -sSL https://get.sqlpipe.dev | sh ``` ```bash sqlpipe run --config sqlpipe.yaml ``` -------------------------------- ### Install Simple English plugin for Claude Code Source: https://github.com/aminblg/simpleenglish/blob/main/src/hooks/README.md Adds the Simple English marketplace and installs the plugin for Claude Code. Run these commands from the repository root. ```bash claude plugin marketplace add AminBlg/SimpleEnglish claude plugin install simple-english@simple-english ``` -------------------------------- ### Verify sqlpipe installation Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/opencode-2026-09-01/raw/nemotron-3-ultra-free__baseline__getting-started.txt Verifies the installation by printing the installed sqlpipe version. Run this after installation to confirm sqlpipe is available. ```bash sqlpipe version ``` -------------------------------- ### Install sqlpipe with Homebrew Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/doc__base__2.txt Installs sqlpipe via Homebrew on macOS or Linux. ```bash brew install sqlpipe ``` -------------------------------- ### Install sqlpipe CLI Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/openai-2026-09-01/raw/baseline__getting-started.txt Downloads and installs the latest version of sqlpipe using the official installation script. ```bash curl -sSL https://get.sqlpipe.dev | sh ``` -------------------------------- ### Install sqlpipe with go install Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/doc__skill__1.txt Installs the latest version of sqlpipe using Go 1.21 or later. Requires network access to the Go module proxy. ```bash go install github.com/your-org/sqlpipe@latest ``` -------------------------------- ### Install sqlpipe with Homebrew or Go Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/doc__base__1.txt Install sqlpipe via Homebrew on macOS/Linux or via Go. The Go command installs the latest version from the GitHub repository. ```bash brew install sqlpipe ``` ```bash go install github.com/sqlpipe/sqlpipe@latest ``` -------------------------------- ### Create minimal sqlpipe.yaml configuration Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/docs/v2__getting-started.txt Create a sqlpipe.yaml file in your project directory. This minimal example defines a Postgres source and a Snowflake destination. Refer to the configuration reference for more options. ```yaml source: type: postgres url: postgres://user:password@localhost:5432/mydb destination: type: snowflake url: snowflake://user:password@account/db/schema ``` -------------------------------- ### Verify sqlpipe installation Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/opencode-2026-09-01/raw/big-pickle__baseline__getting-started.txt Verifies the installation by checking the sqlpipe version. ```sh sqlpipe --version ``` -------------------------------- ### sqlpipe.yaml configuration Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/opencode-2026-09-01/raw/nemotron-3-ultra-free__baseline__getting-started.txt Example sqlpipe.yaml configuration file. Defines a PostgreSQL source, a BigQuery destination, and two tables with different sync modes. Uses environment variables for secrets. ```yaml source: type: postgres host: localhost port: 5432 database: mydb user: ${DB_USER} password: ${DB_PASS} destination: type: bigquery project: my-project dataset: analytics credentials: /path/to/key.json tables: - name: users mode: incremental cursor: updated_at - name: orders mode: full ``` -------------------------------- ### Install Codex plugin with session hook Source: https://github.com/aminblg/simpleenglish/blob/main/README.md Installs the Codex plugin with the session hook. Codex asks to trust the hook before first run; hooks require Node.js. ```bash codex plugin marketplace add AminBlg/SimpleEnglish codex plugin add simple-english@simple-english ``` -------------------------------- ### Inspect previous container metrics with kubectl describe Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/skill__oom.txt Command to get detailed pod info, including last state and OOM kill status. Look for 'Last State' and 'OOM Killed: true'. ```bash kubectl describe pod -n ``` -------------------------------- ### Install Claude Code plugin with session hook and output style Source: https://github.com/aminblg/simpleenglish/blob/main/README.md Installs the Claude Code plugin, which includes the session hook and the output style. The output style is named 'simple-english:simple-english' and must be selected via /config or settings.json. ```bash claude plugin marketplace add AminBlg/SimpleEnglish && claude plugin install simple-english@simple-english ``` -------------------------------- ### Inspect full certificate chain with openssl s_client Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/baseline__cert-error.txt Connects to the server and displays the full certificate chain. Look for 'Verify return code:' at the bottom; code 20 means 'unable to get local issuer certificate'. ```bash openssl s_client -connect your-internal-api:443 -showcerts ``` -------------------------------- ### Check VPA memory recommendation with kubectl describe vpa Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rerun-2026-10-05/cli289-r1/baseline__oom.txt If the right limit is unknown, use VPA in Off or Initial mode to get recommended values without restarting pods. Look at Recommendation.ContainerRecommendations[].Target.memory in the output. ```bash kubectl describe vpa -n # Look at: Recommendation.ContainerRecommendations[].Target.memory ``` -------------------------------- ### Install CA into system trust store on Arch Linux Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rerun-2026-10-05/cli289-r2/2.0.1__cert-error.txt Install the CA certificate system-wide so all tools trust it automatically. Copy the CA file to /etc/ca-certificates/trust-source/anchors/ and run trust extract-compat. ```bash trust extract-compat ``` -------------------------------- ### Raise memory limit in Kubernetes resource spec Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v13__oom.txt Example resource configuration to raise the memory limit. Set limits to ~20-30% above observed peak usage for headroom. ```yaml resources: requests: memory: "512Mi" # scheduler uses this for placement limits: memory: "1Gi" # kernel enforces this — raise it ``` -------------------------------- ### Diagnose OOMKilled with kubectl commands Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply2/baseline__oom.txt Use these kubectl commands to diagnose an OOMKilled pod. The first command shows the restart count and termination reason; the second shows current memory usage; the third shows historical usage if metrics-server is installed. ```bash # See restart count and last termination reason kubectl describe pod -n # Look for: Last State: Terminated, Reason: OOMKilled # Check current memory usage of running pods kubectl top pods -n # Check historical resource usage (if metrics-server is installed) kubectl top pod --containers -n ``` -------------------------------- ### Get pod restart count and last exit reason Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v3b__oom.txt Use this kubectl command to retrieve the container statuses, including restart count and last exit reason, for a pod. ```bash kubectl get pod -o jsonpath='{.status.containerStatuses[*]}' ``` -------------------------------- ### Backfill column in batches Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/skill__migration.txt Step 2: Backfill the value in batches to avoid long locks. Run this in a loop until no rows remain. The batch size (10000) is a starting point; tune based on batch duration and replication lag. ```sql UPDATE your_table SET new_col = 0 WHERE new_col IS NULL LIMIT 10000; ``` -------------------------------- ### Increase memory limit to 512Mi Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/gpt-4.1-mini-reply/baseline__oom.txt Example of increasing the memory limit to 512Mi in the pod spec. This is a step to fix OOMKilled if the application needs more memory. ```yaml resources: limits: memory: "512Mi" # increased limit ``` -------------------------------- ### Backfill loop with PostgreSQL DO block Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rerun-2026-10-05/cli258-r1/baseline__migration.txt PostgreSQL example of a batched backfill loop. Uses a batch size of 10000, throttles with pg_sleep(0.05) to avoid I/O spikes, and repeats until last_id reaches max_id. ```sql DO $$ DECLARE batch_size INT := 10000; last_id BIGINT := 0; max_id BIGINT; BEGIN SELECT MAX(id) INTO max_id FROM your_table; WHILE last_id < max_id LOOP UPDATE your_table SET new_col = WHERE id > last_id AND id <= last_id + batch_size AND new_col IS NULL; last_id := last_id + batch_size; PERFORM pg_sleep(0.05); -- throttle to avoid I/O spikes END LOOP; END $$; ``` -------------------------------- ### Get CA certificate issuer with openssl s_client Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pivot-2026-09-01/reply/plain__cert-error.txt Shows the issuer and subject of the certificate the server sends. Use the issuer information to request the PEM file for that issuer from your IT team. ```bash openssl s_client -connect your-internal-api:443 -showcerts 2>/dev/null | openssl x509 -noout -issuer -subject ``` -------------------------------- ### Get current resource limits Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rerun-2026-10-05/cli258-r2/2.0.1__oom.txt Use this command to inspect the resource requests and limits configured for containers in a pod. The output is a JSON object showing the current memory and CPU settings. ```bash kubectl get pod -o jsonpath='{.spec.containers[*].resources}' ``` -------------------------------- ### Postgres backfill sequence for adding NOT NULL column Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pivot-2026-09-01/reply/plain__migration.txt Use this SQL sequence to add a NOT NULL column to an existing table without locking it. Steps: add nullable column, backfill in batches, add default, then add NOT NULL constraint. The batch size starts at 1,000; adjust based on replication lag. ```sql -- Step 1: add nullable ALTER TABLE your_table ADD COLUMN new_col text; -- Step 2: backfill in batches (run this in a script loop) UPDATE your_table SET new_col = 'default_value' WHERE new_col IS NULL AND id BETWEEN :batch_start AND :batch_end; -- Step 3: add default for new rows ALTER TABLE your_table ALTER COLUMN new_col SET DEFAULT 'default_value'; -- Step 4: add NOT NULL constraint (fast on Postgres 11+) ALTER TABLE your_table ALTER COLUMN new_col SET NOT NULL; ``` -------------------------------- ### Inspect pod details for OOMKilled diagnosis Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rerun-2026-10-05/cli258-r1/2.0.1__oom.txt Use kubectl describe to get the last exit reason and memory limit. Look at the Limits, Last State, and OOMKilled fields in the output. ```bash kubectl describe pod -n ``` -------------------------------- ### Set memory requests and limits in pod spec Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pivot-2026-09-01/reply/old__oom.txt Raise the memory limit and set requests lower than limits. Kubernetes uses requests for scheduling and limits as the kill threshold. Start with a limit 2x the steady-state usage observed with kubectl top. ```yaml resources: requests: memory: "256Mi" limits: memory: "512Mi" ``` -------------------------------- ### Add internal CA to system trust store (Arch/Manjaro and Debian/Ubuntu) Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rerun-2026-10-05/cli289-r2/baseline__cert-error.txt Install the internal CA certificate into the system trust store so curl and other tools trust it automatically. For Arch/Manjaro use trust anchor or copy to /etc/ca-certificates/trust-source/anchors/ then run update-ca-trust. For Debian/Ubuntu copy to /usr/local/share/ca-certificates/ and run update-ca-certificates. ```bash # Get the CA cert from your team/IT (usually a .crt or .pem file), then: # Arch/Manjaro sudo trust anchor --store internal-ca.crt # or sudo cp internal-ca.crt /etc/ca-certificates/trust-source/anchors/ sudo update-ca-trust # Debian/Ubuntu sudo cp internal-ca.crt /usr/local/share/ca-certificates/ sudo update-ca-certificates ``` -------------------------------- ### Install org CA cert on Arch Linux Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rerun-2026-10-05/cli258-r2/baseline__cert-error.txt Long-term fix: add the internal CA to the system trust store using trust anchor and update-ca-trust, then verify with curl. Requires the root CA .crt or .pem file from your infra team. ```bash # Arch Linux (your system) sudo trust anchor --store /path/to/internal-ca.crt sudo update-ca-trust # Verify it's trusted now curl https://your-api.internal ``` -------------------------------- ### Make sqlpipe binary executable and move to PATH Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/doc__base__2.txt Makes the downloaded sqlpipe binary executable and moves it to /usr/local/bin/. ```bash chmod +x sqlpipe && mv sqlpipe /usr/local/bin/ ``` -------------------------------- ### Diagnose OOMKilled with kubectl describe and top Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rerun-2026-10-05/cli258-r1/baseline__oom.txt Check restart count, last exit reason, and current memory usage. Look for 'Last State: Terminated Reason: OOMKilled' in the describe output. The third command shows per-container memory trend if metrics-server is installed. ```bash # Check restart count and last exit reason kubectl describe pod -n # Look for: "Last State: Terminated Reason: OOMKilled" # See current memory usage kubectl top pod -n # Check recent memory trend (if metrics-server is installed) kubectl top pod --containers -n ``` -------------------------------- ### Reproduce benchmark run Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pi-2026-07-31/RESULTS.md Run the benchmark with the specified models and results directory. Delete the raw/ directory first to replace committed generations, as existing raw files are skipped. ```bash python3 evals/run_pi_bench.py \ --results-dir evals/results/pi-2026-07-31 \ --model zai/glm-5.2:max \ --model openai-codex/gpt-5.6-sol:medium \ --model openai-codex/gpt-5.6-terra:medium \ --model openai-codex/gpt-5.6-luna:medium ``` -------------------------------- ### Reproduce benchmark scoring and reply benchmark Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pivot-2026-09-01/RESULTS.md Commands to reproduce the benchmark results: score the plain output directory and run the reply benchmark with the skill file. ```bash python3 evals/score_text_dir.py evals/results/pivot-2026-09-01/openai/plain python3 evals/run_reply_bench.py --skill skills/simple-english/SKILL.md --out /tmp/reply ``` -------------------------------- ### Reproduce benchmark runs Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/RESULTS.md Commands to reproduce the benchmark runs: first runs the reply benchmark for the v3b skill, then scores the document directory. ```bash python3 evals/run_reply_bench.py --report-only --skill v3b=prompts/system-prompt.md --out evals/results/rebuild-2026-09-02/reply1 python3 evals/score_text_dir.py evals/results/rebuild-2026-09-02/docs ``` -------------------------------- ### Run Simple English hook tests Source: https://github.com/aminblg/simpleenglish/blob/main/src/hooks/README.md Runs the test suite for the Simple English activation hook from the repository root. ```bash node --test src/hooks/simple-english-activate.test.js ``` -------------------------------- ### Check indexes with EXPLAIN (ANALYZE, BUFFERS) Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply2/v2__pick-db.txt Run this command on slow queries to check if a missing index is the cause of performance issues. ```sql EXPLAIN (ANALYZE, BUFFERS) ``` -------------------------------- ### Step 2: Backfill existing rows in batches Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/baseline__migration.txt Updates rows in batches (10k-100k) to populate the new column. Keeps transactions short and avoids lock buildup, allowing monitoring of replication lag. ```sql UPDATE your_table SET new_col = 'default_value' WHERE new_col IS NULL AND id BETWEEN 1 AND 100000; -- repeat with next batch ``` -------------------------------- ### Verify the fix with verbose output Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/skill__cert-error.txt Use -v with --cacert to see the full certificate chain and confirm which CA curl accepted. ```bash curl -v --cacert /path/to/internal-ca.crt https://your-internal-api/ ``` -------------------------------- ### Migrate /v2/users from name to first_name and last_name Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/opencode-2026-09-01-plain/raw/nemotron-3-ultra-free__baseline__release-notes.txt Shows the migration from the old `name` field to the new `first_name` and `last_name` fields on the `/v2/users` endpoint. The 'Before' command uses `.name`, while the 'After' command concatenates the two new fields. Update consumers to use the new fields. ```bash # Before curl /v2/users | jq '.[] | .name' # After curl /v2/users | jq '.[] | "\(.first_name) \(.last_name)"' ``` -------------------------------- ### Run benchmark Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/RESULTS.md Runs the benchmark. Requires the Claude Code CLI to be logged in. ```bash python3 evals/run_bench.py ``` -------------------------------- ### Step 2: Backfill in batches Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/base__migration.txt Updates rows in small batches (5k-50k) to keep lock time low. Repeat with next batch range. Optionally add pg_sleep(0.1) between batches under heavy load. ```sql UPDATE your_table SET new_col = WHERE new_col IS NULL AND id BETWEEN 1 AND 10000; -- repeat with next batch: 10001–20000, etc. ``` -------------------------------- ### Update system trust store with trust extract-compat Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply2/v3__cert-error.txt Run this command after copying the CA certificate to /etc/ca-certificates/trust-source/anchors/ to update the system trust store on Arch. Requires sudo. ```bash trust extract-compat ``` -------------------------------- ### Check container memory usage with kubectl top Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rerun-2026-10-05/cli258-r1/2.0.1__oom.txt Use kubectl top to get the container's recent memory usage from metrics. A rising reading that never drops back down points to a memory leak. ```bash kubectl top pod -n --containers ``` -------------------------------- ### Add CA to system trust store on RHEL/Arch Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/base__cert-error.txt Add your internal CA to the system trust store on RHEL or Arch. Copy the certificate to the appropriate directory for your distribution and run update-ca-trust. ```bash sudo cp internal-ca.crt /etc/pki/ca-trust/source/anchors/ # RHEL sudo cp internal-ca.crt /etc/ca-certificates/trust-source/anchors/ # Arch sudo update-ca-trust ``` -------------------------------- ### Create sqlpipe.yaml configuration Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/opencode-2026-09-01/raw/mimo-v2.5-free__baseline__getting-started.txt Defines the source and destination databases in a sqlpipe.yaml file. The source is a PostgreSQL database and the destination is a SQLite file. ```yaml source: type: postgres host: localhost port: 5432 database: mydb destination: type: sqlite path: ./output.db ``` -------------------------------- ### Set memory request and limit in pod spec Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rerun-2026-10-05/cli289-r2/2.0.1-file__oom.txt Raise or add resources.limits.memory and resources.requests.memory. The request guides the scheduler; the limit is enforced by the kernel. Set the limit 20–30% above observed peak usage to avoid starving other pods on a shared node. ```yaml resources: requests: memory: "256Mi" # scheduler uses this to place the pod limits: memory: "512Mi" # kernel enforces this; raise until crashes stop ``` -------------------------------- ### Minimal sqlpipe.yaml configuration Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/docs/v13__getting-started.txt Minimal sqlpipe.yaml configuration defining a PostgreSQL source and a Snowflake destination. ```yaml source: type: postgres url: postgres://user:password@localhost:5432/mydb destination: type: snowflake url: snowflake://user:password@account/mydb ``` -------------------------------- ### Inspect pod memory limit and OOM status with kubectl describe Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pivot-2026-09-01/reply/old__oom.txt Use this command to view the pod's memory limit and confirm the OOMKilled status. Look for Limits.memory as the hard ceiling and Last State: OOMKilled to confirm the cause. ```bash kubectl describe pod ``` -------------------------------- ### Inspect server certificate with openssl s_client Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v3__cert-error.txt Fetch and inspect the server's certificate chain when you do not have the CA certificate. Useful for debugging certificate issues. ```bash openssl s_client -connect internal-api.example.com:443 -showcerts 2>/dev/null | openssl x509 -noout -text ``` -------------------------------- ### Option 1: Add internal CA to system trust store (Arch Linux) Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rerun-2026-10-05/cli289-r1/baseline__cert-error.txt Recommended permanent fix. Extracts the CA certificate, installs it system-wide using ksshaskpass for sudo, and updates the trust store. This fixes the issue for curl, browsers, git, and most other tools. ```bash # Get the CA cert (PEM format) from your IT/infra team, or extract it: openssl s_client -connect your-internal-api:443 -showcerts &1 \ | awk '/BEGIN CERTIFICATE/,/END CERTIFICATE/' > /tmp/internal-ca.crt # Install it system-wide (Arch) SUDO_ASKPASS=$(which ksshaskpass) sudo -A cp /tmp/internal-ca.crt /etc/ca-certificates/trust-source/anchors/ SUDO_ASKPASS=$(which ksshaskpass) sudo -A update-ca-trust # Verify curl https://your-internal-api/ ``` -------------------------------- ### Enable Vertical Pod Autoscaler (VPA) with kubectl apply Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v13__oom.txt Apply the Vertical Pod Autoscaler (VPA) CRD manifest to enable VPA in recommendation mode, which observes real usage and suggests better requests/limits. ```bash kubectl apply -f https://github.com/kubernetes/autoscaler/raw/master/vertical-pod-autoscaler/deploy/vpa-v1-crd-gen.yaml ``` -------------------------------- ### Minimal sqlpipe.yaml configuration Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/opencode-2026-09-01/raw/big-pickle__baseline__getting-started.txt Minimal sqlpipe.yaml configuration defining a PostgreSQL source and CSV sink. ```yaml source: type: postgres connection: postgresql://user:pass@localhost:5432/mydb sink: type: csv path: ./output/ ``` -------------------------------- ### Check current memory usage with kubectl top Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pivot-2026-09-01/reply/old__oom.txt Shows the pod's current memory usage. Compare the output to the configured limit to see how close the pod is to being killed. ```bash kubectl top pod ``` -------------------------------- ### Configure ~/.curlrc with cacert Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pivot-2026-09-01/reply/old__cert-error.txt Per-user configuration without sudo. Add the 'cacert' line to ~/.curlrc to make curl use the internal CA for all requests. ```bash # Add to ~/.curlrc cacert = /path/to/internal-ca.crt ``` -------------------------------- ### Diagnose OOM kill with kubectl describe and kubectl top Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v3__oom.txt Run these two commands to diagnose an OOM kill. The describe output shows the last exit code (137 = OOM kill) and the memory limit in the Limits section; kubectl top shows live consumption. ```bash kubectl describe pod -n kubectl top pod -n --containers ``` -------------------------------- ### Check pod memory limit Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v3b__oom.txt Use this kubectl command to display the resource requests and limits configured for the pod's containers. ```bash kubectl get pod -o jsonpath='{.spec.containers[*].resources}' ``` -------------------------------- ### Create sqlpipe.yaml configuration Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/docs/baseline__getting-started.txt Defines a minimal sqlpipe pipeline configuration. Specifies a PostgreSQL source, a Snowflake destination, and a pipeline that transfers all rows from the 'orders' table. ```yaml source: type: postgres url: postgres://user:password@localhost:5432/mydb destination: type: snowflake url: snowflake://user:password@account/mydb pipelines: - name: my_pipeline query: SELECT * FROM orders destination_table: orders ``` -------------------------------- ### Use environment variables for connection strings Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/doc__skill__1.txt Stores connection strings in environment variables to keep credentials out of shell history, then uses them in the sqlpipe command. ```bash export SRC="postgres://user:pass@source-host:5432/sourcedb" export DST="postgres://user:pass@dest-host:5432/destdb" sqlpipe --src "$SRC" --dst "$DST" --table orders ``` -------------------------------- ### Check OOMKilled status and memory usage Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/base__oom.txt Use `kubectl describe pod` to confirm OOMKilled status and `kubectl top pod` to check live memory usage (requires metrics-server). ```bash kubectl describe pod # Look for: Last State: Terminated, Reason: OOMKilled kubectl top pod # live memory usage (requires metrics-server) ``` -------------------------------- ### Configure resources without hard memory limits Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v2__oom.txt Set a memory request without a hard limit to allow the pod to utilize spare node memory during rare, short-lived spikes. ```yaml resources: requests: memory: "256Mi" # no limits.memory ``` -------------------------------- ### Test Postgres connection with psql Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/docs/v13__troubleshooting.txt Use this command to test the Postgres connection directly. Replace 'your-connection-string' with the actual connection string. This helps isolate whether the issue is with sqlpipe or the database connectivity. ```bash psql "your-connection-string" ``` -------------------------------- ### Run sqlpipe pipeline Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/openai-2026-09-01/raw/baseline__getting-started.txt Executes the pipeline defined in the sqlpipe.yaml configuration file, running the specified SQL queries and data flows. ```bash sqlpipe run --config sqlpipe.yaml ``` -------------------------------- ### Step 2: Backfill existing rows in batches Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pivot-2026-09-01/reply/baseline__migration.txt Backfills existing rows in batches of 10,000–100,000 rows. Each batch acquires a short lock and releases it, allowing other queries to run between batches. ```sql UPDATE your_table SET new_col = 0 WHERE new_col IS NULL AND id BETWEEN 1 AND 100000; -- repeat for each batch ``` -------------------------------- ### Extract CA certificate from server Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pivot-2026-09-01/reply/baseline__cert-error.txt Extracts the server's certificate chain and saves the first certificate to internal-ca.crt. Verify the result with 'openssl x509 -in internal-ca.crt -text -noout' and confirm the issuer matches your internal CA before trusting it. ```bash openssl s_client -connect your-internal-api:443 -showcerts /dev/null \ | openssl x509 -out internal-ca.crt ``` -------------------------------- ### Check server certificate chain with openssl s_client Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/gpt-4.1-mini-reply/baseline__cert-error.txt Use this command to inspect the certificate chain sent by your server. It shows the server certificate and any intermediate certificates. If intermediates are missing, update your server SSL configuration to include the full chain. ```bash openssl s_client -connect yourapi.internal:443 -showcerts ``` -------------------------------- ### Diagnose PostgreSQL performance bottlenecks with pg_stat_statements and pg_stat_* queries Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply2/v13__pick-db.txt Run these queries against pg_stat_statements and pg_stat_* views to identify slow queries, missing indexes, index usage, and table bloat before considering sharding. Replace 'your_table' with the actual table name. The output helps diagnose the most common causes of performance issues. ```sql -- Find slow queries SELECT query, mean_exec_time, calls, total_exec_time FROM pg_stat_statements ORDER BY mean_exec_time DESC LIMIT 20; -- Check missing indexes SELECT schemaname, tablename, attname, n_distinct, correlation FROM pg_stats WHERE tablename = 'your_table'; -- Check index usage SELECT indexrelname, idx_scan, idx_tup_read, idx_tup_fetch FROM pg_stat_user_indexes WHERE relname = 'your_table'; -- Table bloat / dead tuples SELECT n_dead_tup, n_live_tup, last_vacuum, last_autovacuum FROM pg_stat_user_tables WHERE relname = 'your_table'; ``` -------------------------------- ### Backfill in batches (Postgres) Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply2/baseline__migration.txt Updates rows in small ranges to avoid long transactions and lock pressure. The first query shows a manual batch; the second is a scripted loop with a pause to reduce I/O. ```sql UPDATE your_table SET new_col = WHERE id BETWEEN 1 AND 10000; -- repeat with next range, or use a loop/script ``` ```sql DO $$ DECLARE batch_start BIGINT := 1; batch_size BIGINT := 10000; max_id BIGINT; BEGIN SELECT MAX(id) INTO max_id FROM your_table; WHILE batch_start <= max_id LOOP UPDATE your_table SET new_col = WHERE id >= batch_start AND id < batch_start + batch_size AND new_col IS NULL; batch_start := batch_start + batch_size; PERFORM pg_sleep(0.05); -- small pause to reduce I/O pressure END LOOP; END $$; ``` -------------------------------- ### Run benchmark with judge pass Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/RESULTS.md Runs the benchmark with the judge pass. Requires the Claude Code CLI to be logged in. ```bash python3 evals/run_bench.py --judge ``` -------------------------------- ### Backfill in batches Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply2/v13__migration.txt Backfills the new column in small batches. Adjust the batch size to keep each update under ~1 second, and use pg_sleep(0.1) between batches to reduce lock contention. ```sql UPDATE your_table SET new_col = WHERE id BETWEEN AND AND new_col IS NULL; ``` -------------------------------- ### Copy multiple tables with sqlpipe Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/doc__base__2.txt Copies multiple tables (orders, customers, products) from one Postgres database to another using sqlpipe. ```bash sqlpipe \ --src "postgres://user:pass@source-host:5432/sourcedb" \ --dst "postgres://user:pass@dest-host:5432/destdb" \ --table orders,customers,products ``` -------------------------------- ### Copy all tables in a schema with sqlpipe Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/doc__skill__2.txt Copies all tables in the specified schema. The destination tables must already exist and match the source schema. ```bash sqlpipe \ --source "postgres://..." \ --dest "postgres://..." \ --schema public ``` -------------------------------- ### Generate word lists from ASD-STE100 PDF Source: https://github.com/aminblg/simpleenglish/blob/main/tools/ste-dictionary/README.md Commands to convert the ASD-STE100 PDF to text, parse the dictionary, and emit the word lists. The parse step writes dict.json; the emit step writes approved.txt (841 rows) and not-approved.tsv (1,297 rows). The output is deterministic and the generated files are in .gitignore. ```bash pdftotext -layout ASD-STE100_ISSUE9.pdf ste9.txt ``` ```bash python3 parse_dict.py ste9.txt ``` ```bash python3 emit.py . ``` -------------------------------- ### Use curl with --cacert to trust internal CA Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/gpt-4.1-mini-reply/baseline__cert-error.txt Use this curl command to specify a custom CA certificate file when your internal CA is not trusted by default. Replace /path/to/your-ca.pem with the path to your CA certificate PEM file. ```bash curl --cacert /path/to/your-ca.pem https://yourapi.internal ``` -------------------------------- ### Test S3 access with aws s3 ls Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/docs/v13__troubleshooting.txt Use this command to verify AWS credentials and bucket access. Replace 'your-bucket' with the actual bucket name. This helps isolate whether the credentials are valid. ```bash aws s3 ls s3://your-bucket ``` -------------------------------- ### curl --cacert to specify CA certificate Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v3__cert-error.txt Use this when you have the CA certificate file (e.g., internal-ca.crt) that signed the server's certificate. Pass it directly to curl to verify the server's certificate. ```bash curl --cacert /path/to/internal-ca.crt https://internal-api.example.com ``` -------------------------------- ### Extract CA certificate with openssl s_client Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply2/v13__cert-error.txt Connects to the internal API and extracts the server certificate. For multi-level chains, use -showcerts and grab the last PEM block (the root CA) to trust. ```bash openssl s_client -connect your-internal-api:443 -showcerts 2>/dev/null server-cert.pem ``` -------------------------------- ### Copy multiple tables with sqlpipe Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/doc__skill__2.txt Copies multiple tables by repeating the --table flag. Each table must already exist in the destination with matching columns. ```bash sqlpipe \ --source "postgres://..." \ --dest "postgres://..." \ --table orders \ --table customers \ --table products ``` -------------------------------- ### Inspect certificate chain with curl -v and openssl s_client Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v2__cert-error.txt Shows the SSL certificate details from curl and the full certificate chain from openssl. The last certificate in the openssl output is the root CA to trust. ```bash curl -v https://your-internal-api/ 2>&1 | grep -A5 "SSL certificate" openssl s_client -connect your-internal-api:443 -showcerts ``` -------------------------------- ### Backfill in batches Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply2/v2__migration.txt Second step: update rows in chunks to avoid long locks. Repeat with advancing ranges and short sleeps. Batch size of 1,000–10,000 rows with 10–50 ms sleep is common. ```sql UPDATE your_table SET new_col = WHERE id BETWEEN 1 AND 10000 AND new_col IS NULL; -- Repeat, advancing the range, with a short sleep between batches. ``` -------------------------------- ### Add CA to system trust store (Arch/Fedora and Debian/Ubuntu) Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pivot-2026-09-01/reply/old__cert-error.txt Make the CA trust permanent by adding it to the system trust store. The commands differ by distribution: Arch/Fedora use 'trust anchor', Debian/Ubuntu copy to ca-certificates and run update-ca-certificates. ```bash # Arch/Fedora sudo trust anchor /path/to/internal-ca.crt ``` ```bash # Debian/Ubuntu sudo cp /path/to/internal-ca.crt /usr/local/share/ca-certificates/ sudo update-ca-certificates ``` -------------------------------- ### Extract CA certificate with openssl s_client Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply2/v3__cert-error.txt Extract the server's certificate chain to a PEM file. Verify the certificate out-of-band before trusting it. ```bash openssl s_client -connect your-api:443 -showcerts /dev/null | openssl x509 -outform PEM > internal-ca.pem ``` -------------------------------- ### Diagnose OOMKilled pods with kubectl Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v2__oom.txt Use these commands to inspect pod status, termination state, and current memory usage to confirm an OOMKilled event. ```bash # See current limits and restart count kubectl describe pod # Check memory use at the moment of kill kubectl get pod -o jsonpath='{.status.containerStatuses[*].lastState.terminated}' # Recent memory usage (requires metrics-server) kubectl top pod ``` -------------------------------- ### curl --cacert to trust internal CA Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pivot-2026-09-01/reply/old__cert-error.txt Use this command to tell curl to trust your internal CA certificate file for a single request. Replace /path/to/internal-ca.crt with the actual path and your-internal-api/ with the API URL. ```bash curl --cacert /path/to/internal-ca.crt https://your-internal-api/ ``` -------------------------------- ### Copy multiple tables with sqlpipe Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/doc__skill__1.txt Copies multiple tables by passing --table once for each table. All tables are copied from the same source to the same destination. ```bash sqlpipe \ --src "postgres://..." \ --dst "postgres://..." \ --table orders \ --table customers \ --table products ``` -------------------------------- ### Diagnose OOMKilled with kubectl commands Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/baseline__oom.txt Use these commands to check the pod's restart count, termination reason, and memory usage. Look for 'Last State: Terminated Reason: OOMKilled' in the describe output. ```bash kubectl describe pod -n # Look for: "Last State: Terminated Reason: OOMKilled" kubectl top pod -n kubectl top pod --containers -n ``` -------------------------------- ### Use curl --cacert to trust a private CA Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply2/v3__cert-error.txt Use this command to make curl trust a private CA certificate for a single request. Replace the path and URL with your own values. ```bash curl --cacert /path/to/internal-ca.pem https://your-api/ ``` -------------------------------- ### Use curl with --cacert Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pivot-2026-09-01/reply/baseline__cert-error.txt Passes the internal CA certificate directly to curl for a single command, avoiding system-wide changes. Set CURL_CA_BUNDLE=/path/to/internal-ca.crt in your shell profile to avoid repeating the flag. ```bash curl --cacert /path/to/internal-ca.crt https://your-internal-api ``` -------------------------------- ### Add CA to system trust store on Arch Linux Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v3__cert-error.txt Add the CA certificate to the system trust store on Arch Linux, then update the bundle so curl uses it automatically. Run these commands as root. ```bash sudo trust anchor --store /path/to/internal-ca.crt ``` ```bash sudo update-ca-trust ``` -------------------------------- ### Exclude paths from linting with SIMPLE_ENGLISH_LINT_EXCLUDE Source: https://github.com/aminblg/simpleenglish/blob/main/src/hooks/README.md Sets the SIMPLE_ENGLISH_LINT_EXCLUDE environment variable to skip linting for paths matching the glob patterns. Patterns are separated by the platform path separator (colon on Linux/macOS, semicolon on Windows); * also matches /, and a leading ~ expands to the home directory. Set the variable to * to turn off the file check. ```bash export SIMPLE_ENGLISH_LINT_EXCLUDE="$HOME/notes/*:*/CHANGELOG.md" ``` -------------------------------- ### Diagnose slow queries and table/index usage with pg_stat_statements Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rerun-2026-10-05/cli289-r1/baseline__pick-db.txt Run these SQL queries to find slow queries, check table bloat and vacuum status, and see which indexes are actually used. Replace 'your_table' with the target table name. ```sql -- Find slow queries SELECT query, mean_exec_time, calls, total_exec_time FROM pg_stat_statements ORDER BY mean_exec_time DESC LIMIT 20; -- Check table bloat and index usage SELECT schemaname, tablename, n_live_tup, n_dead_tup, last_vacuum, last_analyze FROM pg_stat_user_tables WHERE tablename = 'your_table'; -- Check which indexes exist and are actually used SELECT indexrelname, idx_scan, idx_tup_read FROM pg_stat_user_indexes WHERE relname = 'your_table'; ``` -------------------------------- ### Write-Through Cache (Python) Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v13__cache.txt Updates both the database and Redis atomically in the write path, refreshing the TTL. Use this only if you need the cache pre-warmed, such as for high read volume on a key right after update. ```python def update_price(product_id, new_price): db.execute("UPDATE prices SET price = ? WHERE id = ?", new_price, product_id) redis.set(f"price:{product_id}", new_price, ex=600) # refresh TTL too ``` -------------------------------- ### Backfill in batches with LIMIT Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/gpt-4.1-mini-reply/baseline__migration.txt Backfills the new column in batches using a LIMIT clause to mitigate locking and resource issues. ```sql UPDATE your_table SET new_column = WHERE new_column IS NULL LIMIT ``` -------------------------------- ### Diagnose OOMKilled with kubectl commands Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pivot-2026-09-01/reply/baseline__oom.txt Diagnostic commands to inspect the pod's memory limit, current usage, and the previous container's exit reason. Use these to confirm the OOMKilled cause before changing limits. ```bash kubectl describe pod kubectl top pod kubectl get pod -o jsonpath='{.status.containerStatuses[0].lastState}' ``` -------------------------------- ### Check index usage in pg_stat_user_tables Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply2/v3b__pick-db.txt Query to compare seq_scan vs idx_scan counts; high sequential scans confirm an index gap. ```sql SELECT n_dead_tup FROM pg_stat_user_tables WHERE relname = 'your_table'; ``` -------------------------------- ### Copy all tables in a schema with sqlpipe Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/doc__base__2.txt Copies all tables in the public schema from one Postgres database to another using sqlpipe. ```bash sqlpipe \ --src "postgres://user:pass@source-host:5432/sourcedb" \ --dst "postgres://user:pass@dest-host:5432/destdb" \ --schema public ``` -------------------------------- ### Postgres batched backfill loop for adding NOT NULL column Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v3b__migration.txt Batched backfill loop for adding a NOT NULL column to a large table. Updates 5000 rows at a time, pausing 0.05 seconds between batches to avoid lock contention. Run after adding the column as nullable with a default, and before adding the NOT NULL constraint. ```sql DO $$ DECLARE batch_size INT := 5000; last_id BIGINT := 0; BEGIN LOOP UPDATE your_table SET new_column = 'default_value' WHERE id > last_id AND id <= last_id + batch_size AND new_column IS NULL; EXIT WHEN NOT FOUND; last_id := last_id + batch_size; PERFORM pg_sleep(0.05); END LOOP; END $$; ``` -------------------------------- ### Pass CA directly to curl with --cacert Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v2__cert-error.txt Per-command fix that specifies the internal CA certificate file for a single curl invocation. ```bash curl --cacert /path/to/internal-ca.pem https://your-internal-api/ ``` -------------------------------- ### Backfill in batches Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pivot-2026-09-01/reply/old__migration.txt Updates rows in small batches to avoid a single large transaction. Repeat with the next range until all rows are filled. ```sql UPDATE your_table SET new_col = 0 WHERE id BETWEEN 1 AND 10000; -- Repeat with the next range. ``` -------------------------------- ### Use curl --cacert to specify internal CA Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v13__cert-error.txt Passes the internal CA certificate directly to curl for a single request. Useful when you cannot or do not want to modify the system trust store. ```bash curl --cacert /path/to/internal-ca.crt https://internal-api.example.com/ ``` -------------------------------- ### Add CA to system trust store (Arch/Manjaro and Debian/Ubuntu) Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply2/v2__cert-error.txt Permanently trust the private CA for all tools. The Arch/Manjaro commands use trust anchor and update-ca-trust; the Debian/Ubuntu commands copy the certificate and run update-ca-certificates. ```bash # Arch / Manjaro sudo trust anchor --store /path/to/internal-ca.crt sudo update-ca-trust # Debian / Ubuntu sudo cp /path/to/internal-ca.crt /usr/local/share/ca-certificates/internal-ca.crt sudo update-ca-certificates ``` -------------------------------- ### Copy a single table with sqlpipe Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/why-useless-2026-09-02/doc__skill__2.txt Copies a single table from a source Postgres database to a destination Postgres database. Both connection strings must be provided and the destination table must already exist with matching columns. ```bash sqlpipe \ --source "postgres://user:password@source-host:5432/dbname" \ --dest "postgres://user:password@dest-host:5432/dbname" \ --table my_table ``` -------------------------------- ### Step 2: Backfill in batches Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rerun-2026-10-05/cli289-r2/baseline__migration.txt Run repeatedly until 0 rows updated. Use a safe batch size of 1,000–10,000 rows and sleep 50–100ms between batches to avoid hammering I/O. On a 20 GB table expect hours; run as a background script or migration job. ```sql -- Run this repeatedly until 0 rows updated UPDATE your_table SET new_col = WHERE new_col IS NULL AND id BETWEEN AND ; -- or use a cursor/LIMIT ``` -------------------------------- ### Diagnose OOMKilled with kubectl describe, top, and logs Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply2/v2__oom.txt Diagnose OOMKilled by checking restart counts, last exit reason, current memory usage, and logs from the killed container. Run these commands before changing memory limits. ```bash kubectl describe pod # Check memory usage live kubectl top pod # Read logs from the previous (killed) container instance kubectl logs --previous ``` -------------------------------- ### Backfill column in batches Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rerun-2026-10-05/cli258-r2/baseline__migration.txt Step 3. Populate the new column for existing rows in small batches (5k–50k rows depending on row size) to keep the table available. Repeat the UPDATE for each batch, optionally with a small sleep between batches to avoid I/O spikes. ```sql UPDATE your_table SET new_col = WHERE id BETWEEN 1 AND 10000; -- repeat for next 10k, next 10k... ``` -------------------------------- ### Check recent memory usage across pod Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply1/v3b__oom.txt Use this kubectl command to show current memory usage per container in the pod. ```bash kubectl top pod --containers ``` -------------------------------- ### Write-through Redis cache update on price change Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/pivot-2026-09-01/reply/old__cache.txt Performs a write-through cache update: updates the database and sets the Redis cache with a 10-minute TTL (ex=600). Risks DB/cache divergence if the write fails partway. ```python def update_price(product_id, new_price): db.execute("UPDATE products SET price = ? WHERE id = ?", new_price, product_id) redis.set(f"price:{product_id}", new_price, ex=600) # write-through ``` -------------------------------- ### Inspect certificate chain with curl -v and openssl s_client Source: https://github.com/aminblg/simpleenglish/blob/main/evals/results/rebuild-2026-09-02/reply2/v2__cert-error.txt Use these commands to confirm the diagnosis by viewing the SSL certificate details and the full chain. The openssl output identifies which CA signed the leaf certificate. ```bash curl -v https://your-internal-api/ 2>&1 | grep -A5 'SSL certificate' openssl s_client -connect your-internal-api:443 -showcerts