
Upskill - Earn - Invest - Reinvest - Retire. Producing rich software developers. All about niche SDE skills, investing and trading. Founder: @0xlelouch_
fat fire devs club
Joined March 2023
- Tweets1.3K
- Following1K
- Followers1.3K
- Likes5.5K
It wasn't one attack but multiple this week!
AI agents are making hacking faster and harder to stop.
Microsoft / ARTEX: Microsoft says a China-linked group (Storm-0940) broke into ConnectWise Cloud Backup and used ARTEX, an open-source toolkit of AI agents, to attack Microsoft 365 accounts. The agents made about 2,900 login attempts a minute against more than 2,250 organizations and got admin access to some in under 3 hours. China denies it.
CrowdStrike: four hacking groups used AI agents in real attacks, and all four got AI models past their safety rules by pretending to be security testers. One agent took a network's master keys in about 20 minutes on its own. At least 15 healthcare organizations were hit.
PHP2Shell: two critical flaws were found in PHP, the code behind much of the web. PHP is already patched. Palo Alto's firewall software is also affected and has no fix yet, though Palo Alto says it hasn't seen anyone exploit it.
Banks: after reports that unapproved AI agents were logging into customer accounts, Morgan Stanley is reportedly blocking outside agents, and JPMorgan and Bank of America are restricting them. Wells Fargo isn't blocking them; from November 24 it treats anything your agent does as approved by you.
In one line: AI isn't creating new security holes; it lets attackers exploit old ones (weak logins, exposed admin pages, persuadable AI models) much faster, around the clock.
Made an explainer video using claude director mode on @kalakaroai - pretty useful for creating explainer videos!!
1
2
341
This is why distributed systems tests that use one fake clock are often lying to you.
Real systems do not fail because time.Now() returned the wrong second.
They fail because one node thinks the lease expired, another node thinks it is still valid, and both start acting like the leader.
One machine is 400ms ahead. Another machine pauses for GC. A third node gets NTP corrected suddenly. Now your retry timer, heartbeat timeout, token expiry and leader election are all seeing a different reality.
Your happy-path tests will pass.
Production will still find the split brain for you.
When building simulators, time should be a property of each node, not a global dependency.
Inject clocks per node. Control drift, skew, jumps and pauses. Then run the same scenario again.
That is where distributed systems starts becoming interesting.
We are live! You can also connect your wallet and list free resources in the marketplace! We are working on adding a paywall feature here!
I finally completed building @0xffdevs over the past few days - a learning platform for devs who want to code their way to financial independence.
pathways for Go, Rust, Solana, system design. interview stories. a free system design canvas. jobs board. all free.
We also launched a token on solana via market on @orynth so the crypto community can be a part of this ambitious, community driven project. Just a way for the community to have skin in what we're building together.
Official CA(can be found on the wesbite too): 7bGT4zV1XfaDrjCGNDA5Tghsy83cJSaiqQhwmBBGory
checkout 0xffdevs.com and start learning some niche skills, do checkout the roadmap for what's coming next!
some exciting things in the pipeline!!
Seeing some good growth for a platform launched yesterday
It's live! We launched our product on @orynth
checkout 0xffdevs.com for the official token address!
If you only earn and don't invest, you're essentially losing money due to inflation every year.
2
298
Spx nasdaq all fucked
More attacks by Iran
Oil prices up (before recession signal)
Btc giving a fakeout
Gold consolidating before another leg up
Cycle lows due this October
Recession due this October
Are you ready?
2
232
It shouldn't be x but F (engagment Farmers)
Ok, this is the second time i am seeing a complete copy of my post.
To the audience here on X, is this a scam too?
A different kind of scam but scam nevertheless.
My original post: nitter.gq/i/status/2015817428132…
This is what engagement farming looks like. I can even share the LinkedIn of my friend whose story I shared here.
232
Bitcoin miners are like factories. They spend real money (electricity, rent, machines, staff) to produce Bitcoin rewards.
Their income is paid in Bitcoin. So if Bitcoin price drops a lot, their revenue in dollars drops instantly, but most of their bills stay the same. Same electricity bill, same loan payments, same datacenter costs.
If the price drops below what it costs them to mine, they start losing money every day. To survive, they sell the Bitcoin they mined (or even their saved Bitcoin) just to pay bills. Some also have debt from expanding in the bull market, so the cash pressure becomes brutal.
If the drop is big enough and lasts long enough, the expensive and debt-heavy miners run out of cash and cannot pay lenders or electricity providers. So that is what people mean by miners going “bankrupt”. The cheaper, more efficient miners usually survive and take over after the weak ones get wiped out.
This leads to centralisation, pretty interesting because it highlights the interesting interplay between economics and other factors.
This is why we started this account! To learn niche skills, get remote niche jobs, earn more than an average software dev and reinvest during the bear market and achieve fat 🔥!
Underrated truth about career growth: you need a financial runway to eat risk.
Everyone talks about learning and upskilling and yes, that matters.
But what actually unlocks non-obvious opportunities is having enough savings to say:
“I’ll take the uncertain path.”
That’s been a huge part of my own journey.
I made a very deliberate choice early on:
I didn’t buy a house on a heavy loan. I chose to live on rent instead.
Not because owning a house is bad but because debt kills optionality.
I wanted freedom:
• Freedom to learn niche skills like Rust and Blockchain
• Freedom to say yes to opportunities with uncertain outcomes
• Freedom to invest aggressively during bear markets
• Freedom to spend time on side projects that might not pay off immediately
I’m not playing for comfort. I’m trying to win.
Learning deep, niche skills takes time.
Building real software takes time.
Compounding knowledge, reputation, and capital takes time.
Savings bought me that time.
They gave me psychological safety to take risks others couldn’t.
To go deeper when others had to play it safe.
To invest in myself when returns weren’t guaranteed.
Career fit isn’t just about talent or effort.
It’s also about financial positioning.
If you want outsized outcomes, you need outsized optionality.
And optionality comes from having a buffer that lets you take risks - calmly, deliberately, and repeatedly.
That’s how you unlock non-linear careers.
Crazy paradigm shift this is!!
India seems to be a good place for significant growth right now. The folks here just need a significant paradigm shift after all.
What’s stopping you from doing the things you actually want to do?
For the longest time, I thought it was fear.
Or failure.
Or lack of time.
Or lack of clarity.
But now I realise the real thing stopping me was… me.
I’ve failed a lot.
Regretted a lot.
Wasted stupid amounts of time.
But somewhere along the way, my thinking started to shift.
Probably because of the people I met. The conversations I had. The small nudges that hit at the right time.
And suddenly I started seeing something new:
The future me (Your mind will be blown with this new paradigm!)
This guy…
He’s everything the current me is trying to become —
successful, calm, sharp, disciplined, empathetic, respected, and happy.
And I trust him.
Like crazy.
More than I’ve ever trusted anyone in my entire freaking life.
That’s the wild part:
the person I trust the most is the future version of me.
So why not move in the direction of the person I already know I’m becoming?
Why not try the crazy things?
Why not take the path nobody around me has walked?
Why not let go of the insecurities the current me is still holding onto?
Because the me of today is already unrecognisable from the me of 2–3 years ago.
And the me of tomorrow will be unrecognisable from who I am right now.
This phase - this messy transition full of failures, experiments, rewiring, and tiny improvements isn’t a breakdown.
It’s a transformation.
Honestly, I’ve started treating life like it’s on steroids (not literally lol).
Every year should feel like ten.
Ten years of growth, packed into one.
So what am I waiting for?
What are you waiting for?
Trust your future self.
He’s already cheering for you.
He already knows you make it.
He’s already built the life you’re dreaming of.
All you have to do now
is walk toward him.
One crazy step at a time.
3
85
Very well put
For someone following Karpathy since his early days teaching deep learning at Stanford, I feel he is speaking something so cool here.
Most "educational" content on YouTube and TikTok is entertainment wearing a learning costume. You watch, you nod, you feel productive. But nothing sticks. Nothing changes.
Learning is supposed to feel like effort. Not a 10-minute explainer. Not a mass-produced "Learn React in 30 days" video. You want the mental equivalent of sweating.
Declare your intent upfront. Binary variable. Are you consuming to be entertained or to actually learn? If you're honest, you'll close most tabs.
Close the "Learn XYZ in 10 minutes" posts. They're snacks. Seek the meal instead - the textbooks, the docs, the papers, the RFCs, the source code. Allocate a 4-hour window. Read, take notes, re-read, rephrase, struggle.
How to actually become an expert:
> pick concrete projects and go deep. don't learn breadth-first bottom-up. learn on demand, depth-first. want to understand Transformers? build one. want to learn Kubernetes? deploy something real.
> teach everything you learn in your own words. a tweet thread, a blog post, a voice note to yourself. if you can't explain it, you don't own it.
> only compare yourself to younger you. never to others. the timeline is fake. the progress is yours.
Example: you want to learn system design. don't watch 50 videos. pick one system - say, a URL shortener. build it. hit a wall with database scaling. now go deep on sharding. hit a wall with latency. now go deep on caching. learn on demand, driven by real friction.
That's the Karpathy way. Projects over playlists. Depth over breadth. Struggle over comfort.
That's some beautiful go!
Nice.
Let me share a small go function to understand language semantics. Backpressure and coordination using channels.
Channels are not just for passing data
The jobs channel also slows down the producer because it has a buffer of only 2.
If workers fall behind, the producer blocks.
That’s backpressure for free!
Goroutines scale downward just as cleanly as upward
You launch a few workers and the language handles all the scheduling for you.
No mutexes, no condition variables.
Completion coordination is trivial
The done channel lets main wait for all work to complete without any complex thread management.
1
57
True. To achieve greatness, sacrifices must be made, it doesn't have to be that way but sadly it's the only way.
Once you start growing up and actually experiencing the world, you realise a lot of things you once romanticised were never that magical to begin with.
Not just meeting someone, that part is honestly the easiest.
It is the emotional intimacy… the expectations… the idea of building a life with someone.
You chase it thinking it will complete you, and then when you finally get it, you realise you are still the same person inside.
And sometimes that realisation hurts more than anything.
You start seeing that some people are just wired to walk alone for long stretches.
Not because they hate love or family, but because the path they want to take is so narrow and so steep that you cannot drag another soul into it.
Greatness and emotional comfort rarely grow in the same soil.
One demands chaos, the other demands stability.
To gain something big, you almost always lose something quietly valuable along the way.
And the irony is…
When you had more, you could have settled, you could have chosen peace.
But now that life knocked you down a few floors, the fire inside wakes up again.
That itch to rebuild, to prove yourself, to chase the version of you that you know is still possible.
And with that mindset, emotional commitment becomes almost impossible.
Because now you are walking a road that only you can understand.
So maybe the answer is to live simply for a while.
Nothing fancy.
No grand expectations.
Just you, your work, and your own pace.
Because wanting to be great while having average skills can break your mind if you are not careful.
You start hating yourself, hating the world, and everything that once felt awe-inspiring becomes just another mundane memory.
They say balance is important…
But truth is, we lost that balance long ago when we stepped into engineering college and chose the harder path with our own hands.
And now all we can do is try to make meaning out of the road we’re already on.
2
40
A great post, with lots of learnings for the year!
Sometimes when I sit down at night after writing code for 10 hours, fixing bugs that were not even mine, staring at graphs from trades that went bad, or debugging some production issue I start thinking about how this whole year actually changed me.
Reading @JamesClear ideas again now hits way harder than it did in January. So I tried to map each lesson to what I actually lived through this year in tech, trading, building products, and trying to become a better version of myself.
1. Goals are for people who care about winning once. Systems are for people who care about winning repeatedly.
This year I realised writing “learn Rust”, “trade profitably”, “grow on X” was useless without systems.
Systems were: coding 2 hours everyday no matter what, journaling every trade, publishing one post a day, touching my projects even on bad days.
It is crazy how systems quietly change your life while goals only make you feel guilty.
2. The observant person finds many teachers.
I learnt more from random GitHub issues, Twitter threads, open-source devs explaining their pain, and YouTube traders blowing up live on stream than from any structured course.
Every senior engineer ranting online is basically a free mentor if you listen carefully. Lol.
3. Habits with high ROI actually matter in tech too
– Sleeping 8 hours makes your debugging 10x faster
– Lifting weights helps you not turn into a spine shaped like a parenthesis
– Walking helps you solve system design problems without trying
– Saving 10 percent of your salary stops you from panicking during a recession
– Reading daily compounds your thinking
– Water keeps your brain from lagging like a slow GC
– Keeping the phone in another room while coding… saved half my year
These basic habits literally turned into my competitive edge.
4. Preparation is a mindset, not a plan.
You can plan cloud migrations, sprint roadmaps, trading setups, whatever… but markets will crash, Kubernetes deployments will break, dependencies will change, and clients will panic.
The only thing that saved me this year was developing a mindset that doesn’t freak out when things break.
5. Do your workout and one important task before lunch.
When I started doing this, my whole day shifted.
Ship one feature, or record one video, or finish one critical PR before 12pm… suddenly you feel like you're winning even if the second half of the day collapses. Still need to manage the workout part though.
6. Reduce friction before increasing willpower.
I stopped asking for “motivation” and just made things easier:
Auto-started my IDE with yesterday's file.
Disabled every distracting notification.
Remember, Friction kills more dreams than lack of talent.
7. You don’t need more information, you need more courage.
Half of this year I already knew what to do: ship that product, post that thread, take that trade with proper risk, ask that question at work… I was just scared.
The moment I stopped over-researching and started executing, things moved.
8. New lifestyles create new results.
The day I started acting like someone who builds everyday (even badly), everything changed.
You don’t magically become a dev, trader, founder or creator.
You slowly become one through tiny daily actions that look stupid in the moment.
9. Progress slowly but climb the right mountain.
I wasted months chasing shiny tools, fancy frameworks, and random business ideas.
When I finally decided my “mountains” (TradingSetupApp, YouTube, trading, personal brand), progress became slow but meaningful.
Direction beats speed every single time.
10. Give value before you ask for value.
This year I learnt that writing helpful threads, posting setups, sharing my mistakes, explaining concepts in simple words… that is what builds real trust.
Before asking for attention, followers, customers, money… give something people can actually use.
---
Looking back, this year was messy, chaotic, painful, but also incredibly shaping.
All these small lessons from James Clear that looked obvious earlier… quietly rewired how I work and how I think.
If I can carry these systems into the next year, maybe I’ll finally become the version of myself I always thought I would be.
One day at a time, one line of code at a time, one habit at a time.
I will write another post soon (maybe late december), encapsulating the whole year along with what's coming next for me!
1
38
Very good post to understand postgres transactions and how they work!
Every call is a transaction by default
I was recently trying to use retryPool for our database layer(s) using GORM in our backend golang application.
Faced this weird issue
`transaction has already been committed or rolled back`
Thankfully i read this book recently and knew what the issue was with GORM + retries, how to fix it (SkipDefaultTransaction, tx scoping), and how to stay safe (idempotency).
Read on to understand this weird transaction database issue and the fixes.
---
> Seeing: transaction has already been committed or rolled back with GORM?
It's because you’re reusing a closed transaction handle. A *gorm.DB created via db.Begin() is single-use. Once committed/rolled back, it’s done. Don’t reuse it!!
> Why it bites during failover/network blips:
A hiccup can abort an in-flight transaction. Any subsequent statement on that same tx fails immediately with that error. The fix isn’t “retry on the same handle” it’s start a fresh transaction.
> GORM wrinkle:
by default, each write (Create/Update/Delete) opens a hidden transaction if you’re not already in one. That can mix scopes: some repo calls use your explicit tx, others use implicit per-call tx. Easy way to get confused.
> My default now:
disable implicit tx and be explicit.
db, _ := gorm.Open(dialector, &gorm.Config{
SkipDefaultTransaction: true,
})
No surprises: if you need atomicity across multiple statements, you open the tx.
> Use the closure form for one clear “unit of work”:
err := db.Transaction(func(tx *gorm.DB) error {
if err := repo.CreateStuff(ctx, tx, stuff); err != nil { return err }
if err := repo.AttachThingsToStuff(ctx, tx, stuffID, steps); err != nil { return err }
return nil // commit
})
Don’t store tx on structs; pass it down.
> Have a retrying connection pool (timeouts, resets, failover)?
Great. But remember: if the error happens inside a transaction, that tx is likely aborted. Retry the whole unit in a new tx (only if safe to repeat), not individual statements.
> Writes must be idempotent.
The server might commit while your client times out. If you retry, you could double-insert unless you guard it. Patterns:
• Unique key + UPSERT
• Client-generated IDs (UUID)
• Idempotency keys table
> If you really want “no write retries”:
Use two handles: reads via retrying pool, writes via simple pool.
Or add a policy in your pool (RetryReadsOnly).
Idempotency still matters uncertain commits can happen without retries too.
> “Connection pool nudge”:
on first transient failure, briefly set MaxIdleConns=0 → sleep → restore. It clears stale sockets after failover so retries hit fresh connections. Safe for Postgres/Aurora; reusable for ClickHouse.
Final Checklist:
> SkipDefaultTransaction: true globally
> Use db.Transaction(func(tx){…}) per unit of work
> Pass tx explicitly everywhere; don’t reuse it after return
> Idempotent writes (UPSERT / UUID / keys)
> Retry whole unit only if safe
> Applies to Postgres/Aurora (incl. ZeroETL) and any database/sql driver.
> For ClickHouse, same ideas—adjust error classification/DSN.
The big lesson that we can learn here as a software engineer: transactions are single-use; be explicit; design writes to be idempotent.
13/
TL;DR:
The error means you used a dead tx.
> Disable implicit tx, be explicit with db.Transaction.
> Retries help with network pain, but won’t resurrect a tx.
> Make writes idempotent.
> If a tx dies, start fresh and (only if safe) retry the whole unit.
4
67
Learn niche stuff build niche Software fk dsa
Totally agree and this is exactly why the ecosystem feels warped right now.
The “DSA → FAANG → 200k” pipeline didn’t just become a meme… it became an entire shadow education system where people optimize for solving contrived puzzles instead of learning how to engineer.
What this produces:
– devs who can invert binary trees but can’t design a logging system
– devs who can explain KMP but can’t debug a real distributed timeout
– devs who ace interviews but freeze when asked to implement pagination
– devs who can whiteboard DP but panic when they see a Dockerfile
It’s not the fault of NeetCode or similar creators, they fill a market need.
The problem is the belief that these isolated skills = being a software engineer.
Real software engineering is:
– understanding how data flows through systems
– knowing where failures happen (and how to recover)
– working with infra, storage, caching, queues
– choosing tradeoffs, not “optimal” textbook solutions
– writing code others can maintain, not code that beats a benchmark
– reading logs more than reading LeetCode explanations
The industry isn’t suffering from a shortage of talent it’s suffering from a shortage of engineers who understand systems rather than just puzzles.
If you want to stand out today, the formula is almost boring:
Build real things. Ship. Fix what breaks. Repeat.
That loop will teach you more than 500 hours of DSA ever will.
3
171
Sexy optimisations!!
MapReduce was one of those revolutionary distributed systems paper that came out long back.
This is a very good blog post tbh.
I have some suggestions for optimizations you can do here.
---
Spill to disk for large jobs
If you want to stay faithful to the Google paper, write partitions to temp files per (mapTask, reducerID) and only keep file names in memory.
Then, for each reducer, you stream all its files, sort by key, and reduce sequentially. That trades memory for disk but scales much better.
---
Master scheduling / contention
RequestTask() currently linearly scans mapStatus and reduceStatus under a mutex.
This is fine for tiny toy jobs, but if you had hundreds or thousands of tasks, you’d be doing O(N) work per worker request.
An improvement would be to maintain two queues: mapQueue chan int, reduceQueue chan int
On startup, push all map task IDs into mapQueue
RequestTask() just pulls from the appropriate queue instead of scanning
Use a separate goroutine to re-enqueue tasks that time out (for fault tolerance)
(Actually this is what we generally do in production also, we have a kafka topic called DLQ - dead letter queue where we push failed tasks)
That cuts lock contention and makes scheduling O(1).
---
Worker pool & resource usage
Avoid creating new goroutines per task; reuse the same worker goroutine
Use context.Context to cancel all workers on fatal error
Consider exposing numWorkers as a config and tying it to GOMAXPROCS
---
But overall i loved the blog and its a great initiative to implement such papers!!
2
152












