Skip to content

Instantly share code, notes, and snippets.

View KumarManoj-S's full-sized avatar

Manoj Kumar S KumarManoj-S

View GitHub Profile
@KumarManoj-S
KumarManoj-S / ALB-vs-NLB.md
Last active January 9, 2022 09:35
ALB vs NLB

ALB vs NLB

The following explains the features provided by ALB and NLB.

Application Load Balancer

Here are some primary features of Application Load Balancer.

ALB routes traffic based on request data. ALB makes routing decisions based on the HTTP protocol, like the URL path (/upload) and host, HTTP headers and method, and the source IP address of the client. This enables granular routing to target groups.

@KumarManoj-S
KumarManoj-S / important_interview_problems.txt
Last active October 30, 2021 18:24
Important Interview Problems
Convert a Binary Tree into its Mirror Tree
Print Right View of a Binary Tree
Print Left View of a Binary Tree
Print Bottom View of a Binary Tree
Print Top View of a Binary Tree
Topological sort
Permutation of a string
Trapping rain water problem
Check if a BT is a BST
Largest BST in a BT
@KumarManoj-S
KumarManoj-S / rename_the_master_branch_in_git
Last active November 3, 2020 03:50
Renaming the default branch (master) to a different name.
# consider the default branch is master and we want to rename it to prod
# Steps to rename the default branch master,
# 1. Branch off from master to a new branch called prod.
git checkout -b prod
# 2. set up upstream and push the renamed branch
git push -u origin prod
@KumarManoj-S
KumarManoj-S / change_git_user
Created July 26, 2020 15:57
Change the git user
# To change the git user globally, use the --global flag as follows,
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git config --global user.password "your password"
# To change only for a particular repo, do as follows,
git config user.email "you@example.com"
git config user.name "Your Name"
git config user.password "your password"
@KumarManoj-S
KumarManoj-S / move_one_git_repo_into_another_as_a_subdir
Last active July 22, 2020 14:44
Move one git repository into another as a subdirectory without losing the commit histories.
# Let's say we have two repositories repo_A and repo_B.
# And following are the directory structure of both repositories,
# repo_A
# | - backend
# | - index.js
# repo_B
# | - components
# | - js
# | - index.js