Subscribe

Page 8

Exponential backoff in go

Introduction Exponential backoff is a technique used to handle network errors and timeouts in a more robust and efficient way. The idea behind exponential backoff is to wait for longer periods of time between retries, each time a failure occurs. This helps to prevent overloading the network or server with

1 min read

Golang: Connecting to posgres using ssl

In this article, you will learn how to host a postgres server with ssl enabled using docker and connect to it using golang. 1. Hosting postgres with ssl 1.1 Setting up root certificate First, we need to create a root certificate which can issue server and client certificates. openssl

3 min read

Golang Tutorial 1: Introduction

In this tutorial, you will learn how to install golang, setup you vscode and write a simple hello world program. 1. Installing go 1.1 Mac There are multiple ways you can install go in mac. The best and easy way to install and handle versioning of golang is home

2 min read

Pokemon go: Treadmill + Adventure sync = candies + eggs

Eggs and candies are essential part of pokemon go. You need candies to evolve/power up pokemon and eggs generally hatch better pokemons than wild. In the beginning of pokemon go, you need to keep pokemon go on all the time to track the distance traveled. but, it all changed

1 min read

Switching between Mac and Linux made easier

There might be cases where you need to be working in both OSX and Linux. Switching between Mac and Linux is very hard because of the different shortcuts. To ease the pain of switching between Mac and Linux, I have researched extensively on the alternative of auto hotkey (windows hotkey

1 min read

MongoDB setup in AWS

MongoDB is an essential part of microservices architecture. MongoDB is a document-based no-SQL database. Let’s look at how we can set up MongoDB in an AWS instance. Setting up an AWS instance Navigate to EC2->Instances->Instances, click on launch instance to launch a new

3 min read

A Simple Prometheus client for httprouter

Prometheus is used for monitoring and alerts. Prometheus provides system and application monitoring which is essential for microservices architecture. Prometheus is also part of cloud native computing foundation (CNCF). Using Prometheus you can optimise monitor the microservice and optimise them. You can use the official Prometheus client for generating the

2 min read
AWS

Finding all Vulnerable Security groups in AWS using golang

Security is very important for any AWS infrastructure. Security groups are essential component for AWS security. Security group acts a virtual firewall for all instances and services (RDS, Elasticache etc.). Security groups provides ingress and egress permissions for an instance. Generally public access is provided to HTTP (80) and HTTPS

1 min read
AWS

Cleaning up unused security groups in AWS using golang

As the AWS infrastructure becomes bigger, maintaining security groups becomes harder. This is very hard to do manually. In this blog we will look at how to cleanup unused security groups using script in golang. Whenever a security group is applied to an EC2 instance, ElastiCache, RDS, Elastic Search Service

1 min read

Switching between Mac and Windows PC made easier with Auto Hotkey

Switching between Mac and PC is such a pain. The hotkeys are so different that you mess up quit a bit. This will in turn reduce your productivity a lot. I have struggled quite a bit to switch between Mac and PC. After a lot of searching, I came across

2 min read

Conway's Game of life solution in golang

Conway’s Game of life is an interesting problem with a even more interesting solution. In this blog we will look at solving the game of life problem. Since there are solutions which can run infinitely, we will be getting the state of the universe at nth generation or when

3 min read