Tuesday, 13 October 2026

Luck

Life is unfair to me because i wasnt born in a family with generational wealth and ferraris.

Life is fair because i have a shade above my head.

The 2 sides of a coin.

Monday, 6 July 2026

can debug using shell script

 cat > ~/debug-shell.sh <<'EOF'

echo "===== SHELL ====="

echo "$SHELL"

echo "$0"


echo

echo "===== PATH ====="

echo "$PATH"


echo

echo "===== WHICH ====="

which sudo

which node

which npm


echo

echo "===== TYPE ====="

type sudo

type node

type npm


echo

echo "===== ENV ====="

env | grep PATH

EOF


chmod +x ~/debug-shell.sh

Friday, 3 July 2026

how to use a different technology piece?

 By learning it and writing from memory? nope.

by copying the example from the doc to your codebase and modifying it according to your needs.

Wednesday, 1 July 2026

things to do when you open a deal with a new framework/codebase

Whenever we encounter a new framework, we'll ask two kinds of questions:

Structure questions

  • Where is the entry point?
  • Where is configuration loaded?
  • Where is the transport?
  • Where is the pipeline?
  • Where is the worker?
  • Where is execution started?

These help us navigate the project.

Responsibility questions

For every important class, ask:

  • Why does this class exist?
  • Who creates it?
  • Who owns it?
  • Who calls it?
  • Who destroys it?

For example, for PipelineWorker:

  • Why does it exist?
  • Who creates it?
  • Who calls run() on it?
  • Who cancels it?
  • When does it die?

Those questions reveal the architecture far better than just reading code.

Sunday, 10 May 2026

How does GIT SSH work in corporate

 Suppose you have a gitlab account. and you have a repo in there. you wanna clone it in your remote, cloud based virtual machine. How do you do that?

Gitlab needs to know you have the permission to do so. So, instead of typing out your username and password everytime you type in any git commands in the terminal, we use SSH keys.


SSH key is a pair of cryptographically linked text files:

1. private key: never share this. stays hidden in your VM.

2. public key: you upload this to your gitlab account

When your VM tries to pull code from GitLab, GitLab issues a cryptographic challenge that can only be solved if you hold the matching Private Key. Since you do, GitLab grants access instantly.


Heres how to do this:
- you use the ssh-keygen command.

Sunday, 1 February 2026

Learned CI/CD... its dope

 commit, push

webhook triggers

dockerHub listens

it runs: docker build docker tag docker push, docker tag se new version type ka chiz banta hai of image.

then the newly created image is pushed to docker hub. finally my kubernetes or server pulls the new image. Koi cron job ya webhook puller hoga.. docker compose server, kubernetes's imagepullpolicy, github actions, ssh into server and pull, watchtower: auto pulls updated images


This is the flow.

Saturday, 8 November 2025

That Billion $ blogpost

When can the cold turkey approach backfire?

  • You’re already burnt out or stressed. Sudden withdrawal can cause stress, anxiety, even insomnia.
  • You don’t have a structured replacement—your brain will find something else to binge on.
  • You rely on motivation alone. Cold turkey is brutal if you think “I’ll just push through.”
Point to really remember:

Cold turkey works for some, but the real skill isn’t just quitting a habit—it’s training your brain to focus under withdrawal, boredom, and fatigue. That’s exactly what you’re aiming for.

REMEMBER WHAT YOU ARE AIMING FOR!

So, I asked:
"SO READING A BOOK (11 RULES FOR LIFE), JUST SITTING IDLE, WALK + HEADPHONES ON.. DRINKING WATER, STRETCHING, THESE MAKE A GOOD BREAK RIGHT?"

And the reply?
Well, here it is:
"Exactly—that’s a perfect set of breaks."

Read more »