Skip to content

Instantly share code, notes, and snippets.

View dipanjal's full-sized avatar
🏠
Working from home

Dipanjal Maitra dipanjal

🏠
Working from home
View GitHub Profile
@dipanjal
dipanjal / pondIT_erd
Last active July 31, 2019 16:04
Pondit ER diagram
Table user_types{
id int [pk, not null, unique]
type text
description text
created_at timestamp
updated_at timestamp
}
Table users{
id int [pk, not null, unique]
@dipanjal
dipanjal / pytube_hd_dl
Created November 7, 2019 02:01
Downloads 1080 video and 128Kbps audio form youtube separately and combine them afterwords.
from pytube import YouTube
import sys
import time
# from ffmpeg import _ffmpeg as ffmpeg
import ffmpeg
class YoutubeDL:
_video = None
_audio = None
@dipanjal
dipanjal / dockerhub-v2-api-organization.sh
Created August 29, 2021 15:23 — forked from kizbitz/dockerhub-v2-api-organization.sh
Get the list of images and tags for a Docker Hub organization account
#!/bin/bash
# Example for the Docker Hub V2 API
# Returns all images and tags associated with a Docker Hub organization account.
# Requires 'jq': https://stedolan.github.io/jq/
# set username, password, and organization
UNAME=""
UPASS=""
ORG=""
sudo apt-get update && sudo apt-get upgrade -y
--------- INSTALL DOCKER ---------
sudo apt install docker.io -y
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker $USER
--------- Adding Kubernetese Repository -----
sudo curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
Building a Kubernetes 1.23 Cluster with Kubeadm
Since, Kubernetes has removed docker shimp API and moved to containerd
This will help you build the skills necessary to create your own Kubernetes clusters in the real world.
Solution
SSH into the server and follow the instruction
Install Packages
Log into the Control Plane Node (Note: The following steps must be performed on all three nodes.).
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
spec:
selector:
matchLabels:
app: nginx
replicas: 1
template:
@dipanjal
dipanjal / iterm2-solarized.md
Created November 20, 2023 19:58 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k