Scratchpad
Dileep Kushwaha
Open-Source Enthusiast, Gamer, Developer and Learnpreneur.
notes.dileepkushwaha.com
About
Tags
Seeds
Graph
RSS
Home
Zettelkasten
A Zettelkasten is a type of personal knowledge management system. It is a collection of notes or "slips" that are organized in a filing ...
ToDo
A place to note things to do … Blog post on EDA/Moore's law dieded again Astro grpc Add a feature to separate bookmarks in notes. Temp...
Second Brain
A concept that was popularized after the book Building a Second Brain by Tiago Forte. A second brain is an external storage area for ide...
Developing helm charts
Create charts using basic templating Customize existing charts Manage chart dependencies Use chart hooks Understand types of charts Test ...
Cunningham's Law
Cunningham's Law: The best way to get the right answer on the Internet is not to ask a question; it's to post the wrong answer ~ War...
Jevons paradox
In economics, the Jevons paradox (/sometimes Jevons effect) occurs when technological progress or government policy increases the efficie...
Gustafson's law
gives the speedup in the execution time of a task that theoretically gains from parallel computing, using a hypothetical run of the task ...
Amdahl's law
the overall performance improvement gained by optimizing a single part of a system is limited by the fraction of time that the improved p...
Dennard Law
as transistors get smaller, their power density stays constant, so that the power use stays in proportion with area; both voltageand curr...
posix
The POSIX(Portable Operating System Interface) standard defines interfaces for a Unix-like operating system. Unix was the first operatin...
Open data format
Formatting YAML documents Data types YAML document streams Data type notations and implicit typing Anchors and aliases Validate YAML docu...
Moore's second law
summary: The cost of a semiconductor chip fabrication plant doubles every four years ~ Arthur Rock or Gordon Moore
Moore's first law
summary: The number of transistors in a dense integrated circuit (IC) doubles about every two years (1965) ~ Co-founder of Intel Corp...
astrojs
(astrojs)[https://docs.astro.build/en/core-concepts/astro-pages/] It is Multi-Page Application(MPA) framework. Like Ruby on Rails,...
nodejs
Prefered method of installing nodejs and npm curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - && sudo apt-get i...
python
List comprehensions List comprehensions provide a concise way to create lists. Common applications are to make new lists where each elem...
learning security
overthewire.org PicoCTF.org HackTheBox.com TryHackMe.com Kubernetes Goat tools: nmap, metasploit people: Het_Tanis B7H30
Source control management with git
summary: title reference Clone and initialize repositories Stage and snapshot changes Branch and tag repositories Reconcile changes Insp...
Text editing with vim
summary: title reference Created, open, and save files Insert, edit, and append text Mark, cut, copy, and paste text Search and replace t...
Shell scripting using bash
summary: title reference Interactive use of Bash Bash configuration, flags, and options Simple Commands, Basic Syntax, and Builtins Varia...
recursion
summary: Recursion is a technique in which a function calls itself repeatedly until a certain condition is met. This is often used to sol...
cURL
summary: cURL is a command line tool used for transferring data from or to a server. It supports various popular protocols such as HTTP,...
rustlang
Resource to learn https://www.rust-lang.org/learn Standard library https://doc.rust-lang.org/std/index.html Rust by example https://doc.r...
opensource erp
summary: One stop opensource ERP, used by Zerodha and many link: https://github.com/frappe/erpnext reference https://github.com/frappe/er...
How to ask good questions
summary: https://jvns.ca/blog/good-questions/ title reference
Churchill daily routine
summary: title reference
9 skills for modern citizen
summary: Statistics Germ theory Epidemiology Decision making Propaganda and the status quo Semiotics and indoctrination The mechanics of...
How to work
summary: Calm your mind. If required, meditate. Put in love, affection and enjoy while you do it. Nothing else needs to be contemplated o...
startup in existing market
summary: There is always the fear of failure while creating a new product in an existing market! But the startup economy doesn't always d...
Chicken or the egg
summary: Does the evolutionary genetic changes take place in the embryo (Egg) or post-embryonic development. title reference
creative advertisement
summary: The Crispin Porter + Bogusky approach to advertising via Jonas Winnenmark and Tobias Carlson, Creative Directors, CP+B refere...
thinking in first priciple
summary: STEP 1: Identify and define your current assumptions STEP 2: Breakdown the problem into its fundamental principles. STEP 3: Cr...
yearlog
2022 Many people might consider the pandemic years as missing years. For me, I found myself. 2021 2020 2019
Conway's Law
summary: Conway's Law is an observation made by computer scientist Mel Conway in 1968. The law states that "organizations which design sy...
Projects
Current Project blog, digital garden, second brain, zettelkasten EV charging app Backlog Older Projects creative advertisement
installing k8
Installing k8 using Kubeadm Prerequisites: 1 master VM and 2 worker nodes. https://kubernetes.io/docs/setup/production-environment/tool...
important commands
JSON Path //can filter nad format output of commands //kubectl get pods -o=jsonpath='{ .items[0].spec.containers[0].image }' Loop-Rang...
designing a cluster
Education: minikube, single cluster with kubeadm/gcp/aws Development and Testing: Production: High availability multi-node cluster w...
storage
Docker Storage When we install docker: /var/lib/docker aufs containers image volume Docker layered architecture lay...
networking
Network Namespace //ip netns add red //ip netns add blue // list network namespace //ip netns //Execute a network command //ip netns e...
security
Security Primitives: Controlling access to kube-apiserver Authorization: RBAC Authorization ABAC Authorization Node Authorization Webh...
multi-container pods
Muliti-container pods design pattern include Sidecar Adapter Ambasador At times you may want to run a process that runs to completion i...
monitoring cluster components
We can have one metrics server per Kubernetes cluster. It retrieves metrices from each of the kubernetes nodes and pods, aggregates them ...
logging
logs in docker: docker run -d docker-container docker logs -f container-id logs in kubernetes: kubectl logs -f pod-name //This pod ...
configure applications
Docker: CMD command param1 CMD ["command", "param1"] ex. CMD sleep 5 CMD ["sleep", "5"] docker run ubuntu sleep 5 FROM Ubuntu ENTRYPO...
application lifecycle management
Updates and Rollbacks in deployments //rollout kubectl rollout status deployment/mydeployment //history and revisions kubectl rollout h...
OS upgrades
When pods are drained, they are gracefully terminated on the node they are on and recreated on another. //kubectl drain node-1 //kubectl...
static pods
Kubelet can manage a node independently(+docker/CRI) without a Kubernetes cluster or Kube API server /etc/kubernetes/manifests/ can be u...
demon sets
Daemon Sets ensure that a copy of a pod is present in all the nodes in the cluster. Monitoring agents and log collectors are some usage ...
taints and tolerations
Taints and tolerance are used to set restrictions on what parts can be scheduled on a node. No restrictions: Pods: A B C D Nodes: Node1...
scheduling
Manual Scheduling Add nodeName to the pod definition file if the scheduler is not available. The nodeName can be specified at the creat...
resource limits
Kube-scheduler decides which pods go to which node. The scheduler takes into consideration the amount of resources required by a pod and ...
node selector
//to label a node kubectl lable nodes <node-name> <lable-key>=<label-value> kubectl lable nodes node-1 size=Large Sett...
labels and selectors
We use labels to mark pods such as We may add as many labels as we want under the metadata app App1 function front-end We use the selec...
deployments
Services enable communication within and outside of our application. Helps connect different applications or users. NodePort: External a...
replicasets
A ReplicaSet's purpose is to maintain a stable set of replica Pods running at any given time. As such, it is often used to guarantee the ...
namespaces
kube-system Default kube public //get info about pods from an specific namespace kubectl get pods --namesapce=kube-system //create a pod...
imperative declarative
The imperative way is to use kubectl commands. //Create Objects kubectl run --image=nginx nginx kubectl create deployment --image=nginx n...
Deployment provides us the capability to upgrade underlying instances seamlessly using rolling update, undo changes, pause and resume cha...
pods
The Pod is a single instance of an application. A pod is the smallest object that one can create in Kubernetes. To scale the application,...
kube-proxy
Kube-proxy is process running on each node in cluster. It looks for new services and everytime a new service is creacted it cretaes new r...
kubelet
Kubelet on the worker node register the node on kubernetes cluster. When it recieves the request to load container/pod on a node, it requ...
kube scheduler
Scheduler decides which pods goes oon to which node. Kubelet places the pod onto the node. The scheduler looks onto each node and decides...
kube-controller-manager
Kubecontroller manager is a process that monitors satate of the various components and works to bring the system to work in the desired s...
kubeapi server
Kubeapi is the primary management componenet in Kubernetes When a kubectl comman dis invoked it is first authenticated and then validate...
etcd
What is ETCD? The full form of "etcd" is derived from the Linux directory structure. In UNIX, system configuration files for a single sy...
CRI
Initially, Kubernetes supported only Docker. Gradually, tools like Rocket came into the picture. In order to support many such tools in t...
12-factor-app
From the Introduction: In the modern era, software is commonly delivered as a service: called web apps, or software-as-a-service. The ...
The Fountainhead
Author: Ayn Rand Type: Fiction Genre: Philosophy, Architecture Reader's Objective: To know about Objectivism Notebook: Rating: ** Review...
The Book of Why
Author: Judea Pearl Type: Non-fiction Genre: Philosophy, Statistics, AI, Computing Reader's Objective: To know Causality and its applicat...
Superintelligence
Author: Nick Bostrom Type: Non-fiction Genre: Phylosophy, AI, Computing Reader's Objective: To know future with AI Notebook: Rating: ** ...
Sophie's World
Author: Jostein Gaarder Type: Non-fiction Genre: Philosophy, History Reader's Objective: To know about various phylosophies Notebook: Ra...
Jim Keller
Interests name: Jim Keller interets: #Silicon , #AI twitter: https://twitter.com/jimkxa website: known for Athlon K7 AMD K8 (lead a...
Aaron Swartz
name: Aaron Swartz interests: #learn #freedom #tech #activism twitter: https://twitter.com/aaronsw website: http://www.aaronsw.com/weblog...
Anne-Laure Le Cunff
name: Anne-Laure Le Cunff interests: #pkm #learn #psychology twitter: @anthilemoon website: https://nesslabs.com/blog Biography: Importa...
© Dileep Kushwaha. 2026