Hi, I’m Gary 🙋‍♂️

Backend Engineer for almost a decade. In mission to solve scaling problems by make things effective & efficient.

Resolve Port Already in Use

Port conflict usually happen whenever a service try to run and listen to a specific port while another server currently utilizing it. For those who manage multiple service repository, this could be quite common. The simplest way is to search and terminate the binary. But what if the binary stalled or we have no idea where did we ran it. No worry, with a simple command, we can figure it out in less than a minute!...

April 13, 2023 · 3 min · Gary Samaita

Measure Code Performance With Benchmark in Go

Golang provide a way to know our code efficiency by benchmark our code. By benchmarking our code, we able to see how fast our code can run and even gain more insight. An efficient code displayed from the resource required to complete it execution. The faster it can run, the better. The lower resource required, the better. This concept also applied for codes that run with serverless platform such as AWS Lambda or Google Cloud Function....

January 6, 2023 · 7 min · Gary Samaita

How to Delete Multiple Local Git Branches

For you, productive engineer, who dedicate a lot of time for a repo. Have you clean your git branch locally? Just like our home, a project’s local branch need decluttering too. In my point of view, I’d rather see clear git branch locally to help me find any unmerged branch. Or simply pursue peace of mind. Since Git doesn’t have a built in feature to delete multiple git branch in local project, deleting many branches in your local Git project might take you a while....

April 6, 2022 · 2 min · Gary Samaita