Iimbrooklyninimbrooklyn.hashnode.dev·1d ago · 10 min readShuttle: Small, Type-Safe Composition Primitives for GoSorting a slice by one field is easy. Filtering one collection is easy. Returning (T, bool) is idiomatic. So is writing a nested loop. The friction appears when the same ordering must be shared by a s00
ASAbhijeet Shindeinweeklyupdate.hashnode.dev·1d ago · 7 min readLearning Go, Week 4: Functions, Methods, Defer, and File HandlingLast week was maps, control flow, and structs. This week I moved from organizing data to doing things with it — functions (including the variadic kind), methods on structs, the defer keyword, and basi00
RHRobin Hayerinrobinhayer.hashnode.dev·2d ago · 5 min readConcurrency Without a Parallel Parser: Splitting PCAPs by SessionWhere the last post left off In my first post about the 2.5 GB wall, streaming fixed memory. It didn't fix throughput. The pipeline was still one file, one tshark process, one core. Piping stdout to s00
JTJAY TANKinjaytank.hashnode.dev·4d ago · 10 min readThe ping helper that runs the attacker's commandsHere is a health-check endpoint that looks like it does exactly what it should: @app.route("/ping") def ping(): host = request.args.get("host") return os.system("ping -c1 " + host) It pings a10
Mmriplabsinai-matters.hashnode.dev·Aug 20 · 18 min readConcurrent URL Health Checker in Go: A Practical Study of Concurrency, Synchronization, and Resilient Network ProgrammingAbstract Concurrency in Go is unique amongst programming languages. Goroutine channels is a simple programming model compared with those of other languages, but building a reliable and useful concurre00
Mmriplabsinai-matters.hashnode.dev·Aug 20 · 17 min readBeginner's view of GoEssentials of Golang - an overview for the absolute beginner Getting Started with Go: From Installation to Your First Go Program A practical introduction to the Go ecosystem, development environment,00
FFerinferztyle.me·Aug 19 · 11 min readLeetCode 151: Reverse Words in a String in GoThe problem that looks simple until the whitespace shows up You open LeetCode 151 — Reverse Words in a String expecting a variation on reversing a string, and mostly, that's right. Given "the sky is b00
SUSamuel Umohinumohsg.hashnode.dev·Aug 18 · 19 min readBuilding Fault-Tolerant, Event-Driven Kafka Pipelines in Go: Reliable Reprocessing & Dead Letter QueuesPrerequisites What do you need to follow along? Working knowledge of Golang. Go & Docker installed on your PC. What is an Event-Driven Architecture? An Event-Driven Architecture (EDA) is a design 00
JTJAY TANKinjaytank.hashnode.dev·Aug 17 · 9 min readGraphQL ships insecure by default - and one nested query can take you downHere is a GraphQL server that passes every test, ships to production, and is wide open on day one: const server = new ApolloServer({ typeDefs, resolvers, introspection: true, }); It resolves qu00
JTJAY TANKinjaytank.hashnode.dev·Aug 16 · 8 min readYour `terraform.tfstate` is a plaintext password fileThere is a file in almost every Terraform repository that quietly holds your database password, your API keys, and your TLS private key - in cleartext. It is not a mistake anyone made. It is how Terra00