d
36 notes · 6 topics

My developer notebook.

Every concept, command and project I've studied — from frontend to DevOps and blockchain — captured, organized and fully searchable.

Browse notesPress ⌘ K to search

All notes

Filter by topic, sort, or hit ⌘ K to search.

Projects

Brainly App

Basic things to start a project Npm init -y Npm install -d typescript Npx tsc –init Change the comments in the file for src and out directory and create index.ts file inside the src folder for express add this too in the tsconfig file upper one is the new syn

1 minPDF5 months ago
DevOps

Docker

DOCKER CONTAINER === ITS LIKE A SMALL MACHINE LIKE A VM WE CAN SAY ONE USECASE IS THIS LIKE WHEN YOUR FRIEND SOMETHING SEND YOU SUS AND YOU WANT TO TRY WHAT IS THAT RUN IT INSIDE THE DOCKER CONTAINER THEY ALSO HAVE THERE OWN FILESYSTEM Docker/containers are im

11 minPDFabout 2 months ago
Blockchain

History of Blockchain

Timeline THE BIG SHORT MOVIE 2008 - Global Financial Crisis. 2009 - Bitcoin whitepaper <https://bitcoin.org/bitcoin.pdf> 2010 - The 10k BTC Pizza <https://www.youtube.com/watch?v=j28hkTJMuTA> 2015 – Ethereum Launch 2018 – Solana Founded 2020 – Solana Mainnet B

7 minPDF14 days ago
Backend

Initializing a TypeScript Project

How to intiliaze a ts project? Create a folder using terminal use mkdir Then use pwd to access the path Then in vscode open it using the open folder option npm init –y (initialize a empty package.json) npm install typescript npx tsc –init (initialize a tsconfi

1 minPDF3 months ago
Interview

Interview Questions

What is useeffect hook? What is react lifecycle? Introduce yourself on what project you are currently working on

1 minPDF2 months ago
Frontend

JavaScript

JavaScript (PDF) These notes are kept as a PDF. Use the embedded viewer below, or download the PDF.

1 minPDF3 months ago
DevOps

Kubernetes — Part 1

What is kubernetes Docker is a pre-requisite before you proceed to understand kubernetes Kubernetes (popularly known as k8s) is a container orchestration engine, which as the name suggests lets you create, delete, and update containers This is useful when You

22 minPDF8 days ago
Projects

Medium Blog Website

FOR BACKEND WE ARE USING HONO INSTEAD OF EXPRESS BECAUSE THE ISSUE IS HONO WORKS BETTER WITH CLOUDWORKS SO THATS WHY Hono is built for serverless functions creating be folder and for installing hono using this npm create <hono@latest> creating the endpoints To

2 minPDFabout 2 months ago
Backend

PostgreSQL

To identify who is using mongodb, firebase Go to api calls and see the id field if the id field contains __id: after this there is a object id then See the eg Mongo db has horizontal scaling POSTGRESS WE HAVE TO REALLY GOOD AT MONGO DB is a no sql databases ,

10 minPDF3 months ago
Blockchain

Public Key Cryptography

In US as you login you can just pay you don’t have to give any otp Some websites like coindcx, wazirx, coinbase, backpack exchange etc Metamask wallet Famous phrase NOT YOUR KEYS NOT YOUR CRYPTO LOL How banks do Auth In traditional banks, you have a username a

7 minPDF14 days ago
Frontend

TypeScript

Javascript is a loosely typed language to make it strongly so that the errors in the code can be solved in compile only for that the devs made TYPESCRIPT it just js but with types Step to create a ts project: npm install -g typescript ( to globally install

4 minPDF5 months ago
Blockchain

HD Wallets & dApps Basics

EARLIER WHAT WAS THE ISSUE WAS YOU HAVE TO KEEP PUBLIC AND PRIVATE KEYS FOR ALL THE WALLETS WHICH WERE KNOWN AS HD WALLETS FOR THAT WE HAVE TO REMEMBER SO MANY CODES Hierarchical Deterministic (HD) Wallet Hierarchical Deterministic (HD) wallets are a type of w

5 minPDF14 days ago
DevOps

Kubernetes — Part 2

Currently trying to do everything from the first principle for understanding but mainly we will be using the ingress, certmanager.io these things only in the production you can also use civo.com for the k8s cluster WHAT IS NAMESPACE? It just helps to create a

23 minPDF5 days ago
Projects

Paytm Project

First using the docker file first off check in the docker folder or not docker build ./ -t mongodb:4.7-replset then to run it use docker run mongodb:4.7-replset docker run -d -p 27017:27017 mongodb:4.7-replset use this one to run at a specific port docker run

3 minPDF2 months ago
Backend

Prisma

Cloudfare for servers or Amazon dynamodb they do everything themselves scales well and expensive also Firebase also good ORMS (Object Relational Mapping) 1. Boring official defination ORM stands for Object-Relational Mapping, a programming technique used in so

4 minPDFabout 2 months ago
Frontend

React

React (PDF) These notes are kept as a PDF. Use the embedded viewer below, or download the PDF.

1 minPDF3 months ago
DevOps

Kubernetes — Part 3

­SCALING OF THE K8S(LAST UHUHUHUHUHU) HORIZONTAL POD AUTOSCALER Ref - <https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/> A Horizontal Pod Autoscaler (HPA) is a Kubernetes feature that automatically adjusts the number of pod replicas i

17 minPDF3 days ago
Backend

Monorepos & Turborepo

Search for dubinc/dub there the monorepo concept is used Its like weired way of structuring the project What are monorepos As the name suggests, a single repository (on github lets say) that holds all your frontend, backend, devops code. Few repos that use mon

5 minPDF3 months ago
Frontend

Next.js

Remix / Next js Next js contains both frontend and backend for a project as like the react only has frontend NextJS was a framework that was introduced because of some minor inconviniences in React 1. In a React project, you have to maintain a separate Backend

13 minPDF3 months ago
Blockchain

Solana Jargon

Solana is the one which introduced the smart contracts Context?? Why eth and sol are better than solana? When bitcoin came it just solved one usecase which was the decentralized currency during that time only many of the people started creating there own bitco

8 minPDF19 days ago
Projects

Trello Project

Above is the whole structure of the project General flow for creating a application 1. Design your db schema 2. Create your backend 3. Tests for backend 4. Frontend ALWAYS REMEMBER TO MAINTAIN ID FOR ALL THE USERS LIKE IN DB WE DO THAT SO THIS ALSO TRY TO MAI

1 minPDF15 days ago
DevOps

DevOps Basics, AWS & Certificate Management

Domains vs IPs localhost "Localhost" refers to the computer you're currently working on. It's essentially a loopback address that points to the machine itself, allowing it to communicate with itself over a network. In technical terms, the IP address for local

10 minPDF25 days ago
Frontend

Tailwind CSS

Things to know in a frontend framework Flex, Grids, Responsiveness, background color, hover Without flex With flex Refer slides for more Writing the same thing in short method us ts Grids: Responsiveness In this the one with no prefix is the default one and

1 minPDF6 months ago
Blockchain

Token Launchpad

ACTUAL THING WHAT WE ARE BUILDING? Transactions vs instructions When you send a transaction to the solana blockchain, you are actually sending a bunch of instructions (with a limit to the max number of instructions you can send) instructions is like what are

1 minPDF18 days ago
Backend

Week 10

Single page loader When we use to switch from one page to another in earlier time(html,css,js) there is a refresh loader in the top. SPL is like when you are not switching the whole page just some content is changing and the top bar remains the same. You are c

5 minPDF6 months ago
Projects

Zapier Project

Use of zapier razorpay = payment gateway usecase of zapier like when you do buy a course there are many options imagine we bought service from appx and they just provide payment in inr so the issue is we want in usd also how we will do? To fix that we like cr

11 minPDFabout 2 months ago
DevOps

AWS ECR & ECS

This is like amazon answer to kubernetes if you want similar benefits like kubernetes in aws use this ECS = Elastic container service(Container orchestrator) kubernetes is also a container orchestrator ECS is more easier that kubernetes ECS downside is it can

11 minPDF17 days ago
Frontend

UI / UX

Typeface – Poppins in a type face and fonts inside that are the part of the poppins family Line Height - 150 for heading, 120 for body text Letter Spacing – 0 - -3 % typescale.com - for checking how the website looks with certain fonts fontshare.com – cool fon

4 minPDF6 months ago
DevOps

Deploying with CI/CD to VMs

npm install -g bun npx <create-turbo@latest> create db folder in the packages folder bun init cd packages mkdir db cd db bun init bun install prisma bunx prisma init bun add dotenv defining the schema model User { id String @id @default(uuid()) username String

7 minPDFabout 2 months ago
Frontend

WebSockets

SocketIO is used by Canva and razerpay Websocket protocol is like http only WebSockets provide a way to establish a persistent, full-duplex communication channel over a single TCP connection between the client (typically a web browser) and the server. Persiste

6 minPDF3 months ago
DevOps

Serverless

­WHAT ARE BACKEND SERVERS? They are like simple servers used in startups, hackathons etc initially its good but for scale its expensive so not used for scale Vercel, Render are all serverless and good to use WHAT IS SERVERLESS BACKENDS? The better method to d

7 minPDF12 days ago
DevOps

Horizontal & Vertical Scaling, DB Indexes

If the usage is increased in the db so we can do like buy a bigger machine and then use that but this does not matter in js because its a single threaded language something off topic like imagine you have 16 cores and 16 application running it does not mean th

11 minPDFabout 2 months ago
DevOps

Process Management & Monorepo Setup

TO TAKE ACCESS: we first check the name of the user using whoami icacls "D:\Data\Save\Keys\pallab-key-pari.pem" /grant desktop-abc123\pallab:F icacls "D:\Data\Save\Keys\pallab-key-pari.pem" /remove "BUILTIN\Users" icacls "D:\Data\Save\Keys\pallab-key-pari.pem

11 minPDF3 months ago
DevOps

Monitoring & New Relic

PAGER DUTY, BETTER UP TIME USED FOR MONITORING Logging, monitoring, alerts and status pages Logging Logging refers to the practice of recording events, messages, or data points generated by software applications and systems. These logs can include various type

10 minPDF17 days ago
DevOps

Self-Hosted Monitoring

Prometheus and Grafana (Open source monitoring tools) DATADOG AND NEWRELIC PAID ONES for this we have to learn prometheus query language Revise monitoring In the last live, we understood what is monitoring. We created dashboards that looked like the following

9 minPDF15 days ago
DevOps

Autoscaling Orchestrator (Bolt Project)

Like in the bolt and online application creator website whenever we write a application like chess app it starts to create the application on a vscode terminal on the side how that is done? Its like whenever a request is made that pumps up a machine in which a

8 minPDF19 days ago