Subscribe
Fenix

Technologies, Hacks and Games...

Latest posts

Downloading NSE Bhavcopy closing prices in golang

NSE has no free per-symbol price API, but it publishes one zipped CSV with every closing price each trading day. Here is how I download and parse it in golang: browser headers, a cookie jar, a size cap, columns by name, and a clean error for holidays.

7 min read

Storing Terraform state in S3 with native locking

Moving Terraform state from a local file to an S3 bucket with versioning and encryption, locking it with use_lockfile instead of a DynamoDB table, migrating the existing state, the IAM permissions it needs and what a lock error looks like.

6 min read

Golang Tutorial 10: Pointers

Pointers in Go with runnable examples: & and *, when to pass a pointer, nil pointers, pointer vs value receivers, new(expr) from Go 1.26, the range loop trap and a short look at escape analysis with -gcflags=-m. Small exercise at the end.

8 min read