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.
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.
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
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.
Whenever we encounter a new framework, we'll ask two kinds of questions:
These help us navigate the project.
For every important class, ask:
For example, for PipelineWorker:
run() on it?
Those questions reveal the architecture far better than just reading code.
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.
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.
When can the cold turkey approach backfire?
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!