Skip to content

Instantly share code, notes, and snippets.

View frfahim's full-sized avatar
🐢
Focusing

Farhadur Reza Fahim frfahim

🐢
Focusing
View GitHub Profile
@frfahim
frfahim / network-namespace.md
Last active March 5, 2024 22:04
Understand network space, container networking basic understanding

Network Namespace

Linux kernal (v5.6) has 8 types of namespaces. Network namespace is one of the feature of linux kernal. Most container technologies use this feature to create isolated network stack in the operating system. We can create virtualized network stack with its interfaces, IP range, routing table etc. We can run application in different network stacks.

VETH devices are virtual ethernet devices. They can act as tunnels between network namespaces to create a bridge to a physical network device in another namespace, but can also be used as standalone network devices. The virtual ethernet device will act as a tunnel between the network namespaces that we will create.

We will go thorugh linux network namespace. We want to learn how two network namespace communicate with each other. Also we will see how a network namespace will communicate with outer world.

Our objectives:

@frfahim
frfahim / grokking_to_leetcode.md
Created November 9, 2022 12:37 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@frfahim
frfahim / movie_finder_output.md
Last active November 29, 2017 18:48
Output of movie_finder web crawler from this github https://github.com/frfahim/movie_finder
@frfahim
frfahim / install virtualenv ubuntu 16.04.md
Last active October 8, 2024 21:35
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@frfahim
frfahim / oh-my-fish.md
Last active September 26, 2024 07:40
Install fish shell and oh-my-fish on ubuntu

First install fish shell on your system

sudo apt-get update
sudo apt-get install fish

Or install fish via ppa

sudo apt-add-repository ppa:fish-shell/release-2
sudo apt-get update

sudo apt-get install fish``