I mostly write about my learnings, ramblings and rant on Software and Tech Industry. I've written 15 articles on this site. Use the search below to filter by title.

All Posts

How to Use Svg Icon as Avatarbadge in Chakra UI

November 7th, 2020

3 min read447 words

I was recently building a side project and I was using Chakra UI + Next.js. I wanted to put the Google logo as a Badge in the bottom right of an Avatar Image. Something like this👇🏻. Chakra UI provides an Avatar and AvatarBadge component. You can u...

How File-System Based Routing Works in Next.js

November 6th, 2020

5 min read933 words

Next.js has file-system based routing built-in. You don't have to explicitly define the path in the router. It's as easy as adding a file inside the folder and you are done. There are multiple ways you can define a path using the file structure. Anyt...

Linux Commands: watch

November 1st, 2020

4 min read659 words

watch is used to run a command repeatedly and display its output and error at regular intervals. This is useful when you want to run a command repeatedly and observe its output getting changed over a period of time. By default, the command is run eve...

Linux Commands: env

October 29th, 2020

3 min read509 words

env can be used to print the environment variables or pass environment variables to a utility/command without setting them in the current shell session. Let's run env without any argument and see what happens. It simply prints all the environment v...

How to Schedule a Blog Post on Hashnode.

October 25th, 2020

3 min read594 words

Everyone has been asking this for a very long time. In today's blog, I will show you how you can schedule a blog to be released on hashnode. This is not an official way and has nothing to do with hashnode officially. This is going to be a step by s...

Linux Commands: printenv

October 18th, 2020

2 min read219 words

printenv is used to print out the environment variables. Environment variables are a common form of setting global values across a terminal session. Environment variables can be set by the systems, automation scripts, or by the user. You can print yo...

Linux Commands: du

October 17th, 2020

2 min read400 words

du is used to display disk usage statistics. It's a simple tool to calculate and print the disk space used by files or directories. Let's see how to use it. You can simply type du or du directory-name in your terminal and it will print the size. I...

Fathom vs Plausible: Which Privacy-Focused Google Analytics Alternative Should You Use?

October 15th, 2020

6 min read1087 words

Today 84% websites use Google Analytics on their website to track user activities. The reason for its popularity is that it's free(not literally), I mean who doesn't love free stuff. But there is always a cost and that cost in the case of Google Ana...

How to Implement HTTP Basic Auth in Go(golang)

October 13th, 2020

7 min read1291 words

Today the web is full of people using various platforms. Every platform has its own authentication mechanism to identify users specific to their platform. Authentication helps your application to know that the person who sent a request to your applic...

Linux Commands: wc

October 11th, 2020

3 min read418 words

wc stands for word count. It is used to display the number of lines, words, characters, and byte for a file or input received via pipe(|). the output shown above is explained below. 1 - Number of lines. 2 - Number of words 14 - Number of bytes The...

Linux Commands: pwd

October 8th, 2020

3 min read455 words

pwd is one of the most helpful commands for linux newbie. Whenever you are lost just type it in your terminal and you will find where are you exactly. Let me show you how you can do it. You can see it tells me my current working directory. Usually, ...

How to Change the Port of a Next.js Application

October 7th, 2020

2 min read353 words

I have been building my personal website using Next.js. By default, Next.js server runs on port 3000 which is good but sometimes you want to run the server on a different port maybe because you already have a service running on it, or maybe it's not ...

Linux Commands: ls

October 6th, 2020

3 min read435 words

ls is the Linux command to list the content of a directory. You can list all the files and folders inside a directory. Let's try it in your terminal. You can pass arguments to ls to change the output. Let's take a look at ls -al. It has more detail...

How to Implement Concurrency in Go

October 4th, 2020

4 min read752 words

Go was designed to run on modern computers with multiple cores. Go has first-hand support for concurrency through goroutines and channels. Writing a concurrent program in Go is as simple as adding a single keyword. Let's dive straight into the implem...

Create Golang HTTP Server in 15 Lines

September 22nd, 2020

3 min read516 words

Golang has quickly become an industry standard for creating and maintaining high scale web services. It has an inbuilt package net/http to create an HTTP server. This package reduces the barrier of creating the server. This post will help get your fi...