Since 2 November Hero Wars runs its events in 28 day cycles: a Season and pre-order, a themed event, the main Adventure, then an Ascension Adventure. How it works, what counts for Season XP and November 2026 week by week.
gin's r.Run() has no timeouts and no signal handling, so every ECS deploy cut in-flight requests. Here is a golang http.Server with sane timeouts, a short drain delay and a shutdown budget that fits inside Fargate's 30 seconds, with tests.
A beginner's walk through a first Terraform project on AWS: a provider, a data source for the Ubuntu AMI, a security group and one EC2 instance, then init, plan, apply and destroy, how to read the plan and what the state file is.
Everything in my blog's AWS account was clicked together in the console in 2020. Here is how I brought it under Terraform with import blocks, the key pair that wanted to be replaced, prevent_destroy on the live server, and a tiny wrapper that keeps credentials off the screen.
An ECS run-task override can replace a container's command but not its entrypoint. With ENTRYPOINT in the image, the override becomes arguments to your app and the one-off task starts the API server instead. Here is how to see it and catch it in CI.
Arrays vs slices in Go, length and capacity, the append gotcha that overwrote my data, copy, and the slices package (Sort, Contains, Index, BinarySearch). Runnable examples on Go 1.27 and a small exercise at the end.
Strategy tests that call a broker API are slow and never give the same answer twice. Here is the small golang helper I use to build fake five minute sessions from a price function, and the tests I write on top of it.
Part 0 of the shorty series: designing a URL shortener before writing code. Requirements, rough numbers, random base62 codes vs counters and hashes, 301 vs 302, caching hot links in Redis and counting clicks without slowing redirects.
Running goose up in the container start command means every new ECS task migrates on boot. Here is how I moved migrations into a one-off ECS task in GitHub Actions that must exit 0 before the service gets the new image.
How I build the EC2 host for this blog with Terraform: IMDSv2, an encrypted disk, cloud-init for Docker and only ports 80 and 443 open. Changes go in through SSM Run Command, so port 22 stays closed.
Data Lifecycle Manager takes a snapshot of every EBS volume with a given tag once a day and deletes the old ones for you. Here is the Terraform for the policy and its IAM role, how I tag the root volume, and why I still keep a separate database backup.
A backtest without trading costs will flatter almost any intraday strategy. Here is the small Go function I use to estimate Zerodha brokerage, STT, exchange fees, stamp duty, GST and DP charges for intraday and delivery trades.