~/tech-with-ugur

Tech with Ugur

Hands-on labs in cybersecurity, devops, AI, and observability — every post comes with runnable code.

Three Valleys, One Gradient Step

2026-09-29 maths

A one-dimensional gradient descent lab records every update from three starting points and shows why the lowest observed result needs a separate global-minimum argument.

The Strongest Signal Is the One You Can't Have

2026-09-10 aimaths

Google's TimesFM 3.0 forecasts a series with no training and no API key, and it takes covariates now. On hourly PM2.5 in Milan, tomorrow's weather is worth 16% of the error — and yesterday's carbon monoxide, the strongest correlate in the dataset at +0.92, is worth slightly less than nothing. That gap is the whole point.

The Agent Is in the Page. The Key Is Not.

2026-09-09 ai

Alibaba's page-agent embeds a GUI agent directly in your web app — no headless browser, no extension, DOM-only. Getting it working takes an afternoon. Keeping the model credential out of the browser is the part that turns 'add an AI assistant' into 'operate an authenticated LLM relay', and it changes what your markup is for.

A Malicious MCP Server That Splits Its Instructions Across Tools

2026-08-28 cybersecurityai

An MCP server hands your agent the descriptions of its tools, and the model treats them as trusted context. Split one exfiltration instruction across three innocent-looking tools and no per-description scan will ever see it — but the model reassembles it and reads your SSH key out. Watch it happen against a local agent, then watch a guardrail shut it down. Fully offline.

When a Vibe-Coded AI App Wires an LLM to the Network and the Shell

2026-08-28 cybersecurityai

Vibe-code an AI app in an afternoon and the model ends up wired to two of the most dangerous sinks a program has: the network and the shell. Watch a poisoned document leak a secret, watch a 'process my data' request become a reverse shell — then watch the same app, hardened, shut both down. Fully offline, on your laptop.

When One Prometheus Isn't Enough: Sharding, Replication, and Thanos — Proven Side by Side

2026-08-25 observability

Add a Prometheus replica and every query sees every series twice; shard the targets and every query sees a slice of the truth. This lab builds both failure modes on purpose in a kind cluster, puts Thanos Query in front of them, and proves the fix with an automated verifier — same answers as an unscaled control install, shards exposed as partial, duplicates collapsed, and pods killed mid-run without a gap in the data.

Recording Rules Done Right: One Dataset, Two Grafana Dashboards, and Alerts Straight to Your Own Webhook

2026-08-25 observability

Installing kube-prometheus-stack is where most tutorials stop and where the real work starts. This lab builds the customization layer teams actually need — recording rules with human-readable node names, twin dashboards that prove why they matter, and Grafana-managed alerts landing in your own TypeScript server — then breaks the cluster on purpose to watch all six alerts fire.

No Proxy, No CA, No Cooperation: Catch an App Phoning Home with eBPF

2026-08-24 cybersecurity

The same freshly downloaded app, watched from inside the kernel instead of in front of it. An eBPF sensor attributes every DNS answer and TCP connect to the exact process that made it — catching a covert beacon delegated to a dropped helper binary, the one thing a network proxy can name a destination but never a process for.

Deep Research on Your Own Laptop

2026-08-18 ai

OpenAI and Google will run 'deep research' for you in their cloud. This lab builds the miniature version — a LangGraph Deep Agents CLI in TypeScript, driven entirely by a 4B model in Ollama — and documents every trick it takes to make a small local model actually finish the loop.