← Writing · page 5 of 11

How-to guides

156 posts tagged how-to.

Oct 31, 2026

How to Set Up Usage-Based Billing with Stripe Meters (2026)

Step-by-step Stripe Billing Meters guide for 2026: create a meter and metered price, subscribe a customer, send idempotent meter events and v2 meter event streams, preview invoices, handle error webhooks, test with test clocks, and fix common errors.

13 min
Oct 31, 2026

How to Host a Static Website on S3 and CloudFront with HTTPS (2026)

Step-by-step 2026 guide to hosting a static site or SPA on a private S3 bucket behind CloudFront with HTTPS: Origin Access Control, an ACM certificate in us-east-1, a CloudFront Function for routing, Route 53, Terraform, cache invalidation, and fixes for AccessDenied 403 errors.

12 min
Oct 31, 2026

How to Implement SOC 2 Controls on AWS with Terraform (2026)

Step-by-step SOC 2 technical controls on AWS with Terraform: organization CloudTrail, AWS Config and a custom conformance pack, GuardDuty, Security Hub CSPM with CIS v5.0.0, Identity Center MFA, encryption defaults, AWS Backup vault lock, 400-day retention and evidence export.

18 min
Oct 31, 2026

How to Sign and Verify Container Images with Cosign Keyless (2026)

Step-by-step: sign container images with cosign v3.1.4 keyless in GitHub Actions, verify with certificate identity flags, attach SBOM and SLSA attestations, enforce signatures in Kubernetes with Kyverno 1.19 ImageValidatingPolicy or Sigstore policy-controller, and fix common errors.

11 min
Oct 31, 2026

How to Add Semgrep and CodeQL to GitHub Actions (2026 Guide)

Step-by-step 2026 guide to Semgrep CE 1.183 and CodeQL Action v4.39 in GitHub Actions: default vs advanced setup, pinned workflows, SARIF upload with categories, PR-only diff scans, custom rules with tests, suppressing false positives, merge gates and fixes for common errors.

13 min
Oct 31, 2026

How to Get Reliable JSON From LLMs With Pydantic (2026)

Step-by-step guide to reliable JSON from LLMs in Python: Pydantic models, OpenAI responses.parse, Anthropic messages.parse, validation and retry loops, Instructor, streaming partial JSON, Ollama and vLLM, with tested versions and a troubleshooting table.

11 min
Oct 31, 2026

How to Reduce AWS Costs: Step-by-Step Checklist With CLI (2026)

Cut your AWS bill step by step in 2026: break down EC2-Other in Cost Explorer, export CUR 2.0 to Athena, enable Compute Optimizer and Cost Optimization Hub, find idle EBS, snapshots, IPs and load balancers with the AWS CLI, swap NAT for VPC endpoints, add lifecycle rules, budgets and anomaly alerts.

16 min
Oct 31, 2026

How to Audit an AWS Account with Prowler 5.47: Step-by-Step (2026)

Audit an AWS account with Prowler 5.47.0: install a pinned version, deploy the read-only ProwlerScan role, run CIS 6.0 and SOC 2 checks, read the OCSF output, fix and mute findings, schedule weekly scans in GitHub Actions, and scan a whole organisation.

11 min
Oct 31, 2026

How to Build Anomaly Detection Alerts in Prometheus 3 (2026)

Step-by-step PromQL anomaly detection for Prometheus 3.15: z-score recording rules with avg_over_time and stddev_over_time, week-over-week seasonal predictions, double_exponential_smoothing behind its feature flag, Grafana's promql-anomaly-detection rules, promtool tests and fixes.

13 min
Oct 31, 2026

How to Run Zero-Downtime Postgres Migrations: Step by Step (2026)

Run PostgreSQL schema migrations without downtime: lock_timeout and retries, CREATE INDEX CONCURRENTLY, NOT NULL via CHECK NOT VALID or the PG 18 NOT NULL NOT VALID, batched backfills, an expand/contract column rename, pgroll 0.16, Squawk in CI and pg_locks queries.

17 min
Oct 31, 2026

How to Install NVIDIA GPU Operator and Share GPUs: Time-Slicing, MIG (2026)

Step-by-step NVIDIA GPU Operator v26.7.2 install with Helm, verified with nvidia-smi and a CUDA test pod, then GPU sharing with a time-slicing ConfigMap or MIG profiles, DCGM Exporter metrics, and fixes for driver crash loops and nodes with no nvidia.com/gpu.

14 min
Oct 31, 2026

How to Set Up Nginx as a Reverse Proxy With Let's Encrypt (Ubuntu 24.04)

Step-by-step Nginx reverse proxy on Ubuntu 24.04 with Let's Encrypt: server blocks, proxy headers, WebSockets, certbot 5.9 and the nginx plugin, renewal timers, HTTP/2 and HSTS, the 2026 certificate changes, and fixes for 502 and permission errors.

14 min
Oct 31, 2026

How to Migrate Jenkins to GitHub Actions: Step-by-Step Guide (2026)

Migrate Jenkins pipelines to GitHub Actions in 2026: inventory jobs, plugins and credentials, run GitHub Actions Importer audit, forecast and dry-run, map Jenkinsfile stages to jobs, move keys to secrets and OIDC, rebuild shared libraries as reusable workflows, and run ARC 0.15.1 runners.

16 min
Oct 31, 2026

How to Measure DORA Metrics From GitHub: gh api and SQL (2026)

Step-by-step: measure all five DORA metrics from GitHub with environments, the Deployments API, gh api, PR merge data and SQLite, plus revert and incident labels for change fail rate, Apache DevLake dashboards, the archived Four Keys project and a troubleshooting table.

13 min
Oct 31, 2026

How to Set Up kube-prometheus-stack: Prometheus and Grafana (2026)

Install Prometheus, Alertmanager and Grafana on Kubernetes with kube-prometheus-stack 92.16.1: pinned Helm values, ServiceMonitor and PodMonitor examples, retention and disk sizing, Slack routing with a dead man's switch, dashboards as ConfigMaps, remote_write, and fixes for targets that show down.

17 min