like every developer out there, I'm continually pushing new code and figuring things out.

I noticed that from time to time I've been collecting some Gists - even though not sharing them publicly, and not documenting them enough.

This section is where I'll now start sharing those snippets of code. I hope you learn something from them!




  1. Using C to inspect Linux syscalls

    A deep dive into how to make use of ptrace to inspect syscalls made by a tracee while they occur.

  2. How to set up AWS EFS across multiple availability zones using Terraform

    Having an AWS EFS file system over multiple availability zones using Terraform is not complicated. Check out one way of doing it.

  3. How to collect Docker Daemon Metrics

    Docker ships with native Prometheus integration - the docker daemon can generate metrics about it and let you scrape that. Check out how to gather Docker daemon metrics in Linux and MacOS.

  4. Using find to search for Golang directories

    The find UNIX utility is great for searching for directories, but vendoring might get in the way. Check out how to use find excluding the golang vendor directory

  5. An Example of Go RPC Client and Server

    Having jump straight to gRPC, I got surprised by how easy is to set up Go RPC using net/rpc package. Check out a simple example exploring this package.

  6. Replacing HAProxy ACLs by HAProxy Maps

    HAProxy maps can reduce the complexity of haproxy configurations by allowing you to define map lookup logic. Check out how to remove ACLs in favor of maps.

  7. Forcing (from inside) the redirection of all outputs of a bash script to a file

    Using exec to redirect force redirection from within a bash script.

  8. HAProxy Docker Container Logs

    HAProxy doesn't naturally log to standard out - you need to pick rsyslog and make it do so. Check out how to have HAProxy logs going to stdout using Docker containers.