I have created a medium to make it easy for individuals who want to support my open source work, blogging, and other research activities. #payment#opensource
https://t.co/DIRBldReiv
People want the latest iPhone but still use legacy Linux commands.
- Stop using nslookup, use dig
- Stop using top, use htop
- Stop using ifconfig, use ip addr
- Stop using netstat, use ss -tulpn
- Stop using service, use systemctl
- Stop using traceroute, use mtr
- Stop using ping, use mtr -rw
- Stop using telnet for port checks, use nc -zv
- Stop using tail -f on service logs, use journalctl -u <service> -f
- Stop using tcpdump, use tshark
Upgrade your commands too.
A 2.1GB - 180MB difference typically comes from optimization discipline:
1) Multi-stage builds
- Build in one stage, copy only artifacts to final image
- Removes compilers, build tools
2) Minimal base image
- Use alpine, slim, or distroless instead of full OS
3) Layer optimization
- Combine RUN commands
- Avoid unnecessary layers
4) Remove caches & temp files
- apt-get clean, remove /var/lib/apt/lists/*
- Delete build leftovers
5) Use .dockerignore
- Prevent sending node_modules, git, logs, etc. into build context
An absolute banger of a paper.
“A Gentle Introduction to Matrix Calculus” by econometrics legend Jan Magnus — one of the clearest explanations of matrix derivatives ever written.
If you work in econometrics, machine learning, statistics, or optimisation, this paper is pure gold.
Top 50 LLM Interview Questions!
A comprehensive resource that covers traditional ML basics, model architectures, real-world case studies, and theoretical foundations.
If you’re preparing for ML/AI Engineering interviews, this PDF will be a valuable resource.
The best part?
Each question is paired with a concise, clear answer and examples.
Link to the PDF in the comments!
Those looking for hands-on DevOps projects to strengthen their skills should explore the repository below. It offers end-to-end, real-world scenarios to practice CI/CD, Kubernetes, Terraform, AWS, and more.
https://t.co/UxyCHMWJzs
Reduced Docker image size from 2.1GB to 180MB. Deployments 8x faster.
The original Dockerfile:
- Started with ubuntu:latest
- Installed everything via apt
- Included dev dependencies
- Copied entire project directory
- Left build artifacts
- No layer optimization
The problems:
- Pull time: 6-8 minutes
- Registry storage costs high
- Deployment took forever
- Security scan found 47 vulnerabilities
- Most from unnecessary packages
What we optimized:
1. Base image
- ubuntu:latest (2.1GB) → alpine:latest (5MB)
2. Dependencies
- Removed dev dependencies
- Multi-stage build
- Only production packages
3. Layer caching
- Copied requirements first
- Installed dependencies
- Then copied source code
- Leveraged Docker layer cache
4. .dockerignore
- Excluded .git, tests, docs
- Removed 800MB of files
The new image: 180MB
The impact:
- Pull time: 6min → 45sec
- Build time: 8min → 2min
- Deploy frequency: 2x per day → 15x per day
- Registry costs: $340/month → $60/month
- Security vulnerabilities: 47 → 3
- Kubernetes pod startup: 90sec → 12sec
Every MB in your image costs time and money. Optimize Docker images like you optimize code.
Why pay $400/mo on AWS vs $50/mo on Hetzner for the “same thing”?
It's not about the individual specs. It's the ecosystem.
Availability Zones: Hetzner doesn’t have AZs. Each AWS region has 3+ AZs: physically separate locations with isolated failure domains. Most large-scale HA systems depend on this so that one data center issue does not take down their application. AWS also has far more datacenter locations.
Services: AWS has a huge set of services like Lambda, Cloudfront, EKS, RDS (and a million others). There’s also the ecosystem of products by other companies like PlanetScale and Vercel. Hetzner doesn’t have the same. This means more manual effort to build effective services.
SLA: As far as I’m aware, Hetzner has no contractually obligated uptime for their services. AWS can fail (as we saw last week!) but provides stronger guarantees.
AWS is 100% worth it for many. Others prefer the cost-savings of Hetzner and similar platforms, even when it means more engineering hours to build and maintain.
Reduced our Docker build time from 45 minutes to 3 minutes.
Original build:
- Full npm install every time
- Downloaded all dependencies fresh
- No layer caching
- Built everything in one stage
Optimizations applied:
1. Layer caching for dependencies
- Copy package.json first
- Run npm install
- Then copy application code
- Only reinstalls if package.json changes
2. Multi-stage builds
- Build stage with all dev dependencies
- Production stage with only runtime needs
3. npm ci instead of npm install
- Faster, stricter installation
- Better for CI/CD
4. .dockerignore file
- Excluded node_modules, tests, docs
- Smaller build context
Results:
- Build time: 3 minutes (down from 45)
- Image size: 320MB (down from 1.2GB)
- CI/CD pipeline 15x faster
- Deploy frequency increased from 2/day to 20/day
Small optimizations compound. Every minute saved is multiplied by every build.
This paper was useful for understanding the benefits of Column stores designed from the ground up
The combination of low tuple overhead, compression and block processing means that you can't trivially convert a row store into a column store
Your Docker containers are slow, bloated, and vulnerable. And you’re probably making the same mistakes 90% of engineers make in production.
Take my advice and please
• Don’t use “latest” tags, instead use specific versions like node:18.17-alpine
• Don’t build single-stage fat images; instead, use multi-stage builds to get 50MB images instead of 800MB
• Don’t run containers as root, instead, create a non-root user for security
• Don’t copy everything with COPY . ., instead use .dockerignore and specific COPY commands
• Don’t let containers use unlimited resources, instead set proper memory and CPU limits
• Don’t deploy without health checks, instead add HEALTHCHECK commands so Kubernetes knows your app works
• Don’t create 20 separate RUN layers, instead combine commands with && to minimize layers
• Don’t skip security scanning, instead use docker scan or Trivy in your CI/CD pipeline
• Don’t use full OS images for simple apps, instead use scratch or distroless base images
• Don’t write logs to files inside containers; instead, log to stdout/stderr and let orchestrators handle collection
These practices make the difference between hobby projects and production systems.
Your containers should be fast, secure, and predictable. Not slow, vulnerable time bombs.
What I love about SQLite is its incredible flexibility. Last year I met someone who told me : "I don't understand why some use cases can't use SQLite rather than Kafka"
Each partition can be a SQLite database, that scales out well, and you have native SQL queries on the stream, can use ORMs, etc.
As it turns out, one of our customers at @tursodatabase is doing exactly that. And they saved more than 60% on their cost, while improving their reliability at the same time.
Read more about how BÆRSkin Tactical Supply Co. is saving big by going small:👇
@ezyang Hydra is such a god send. I wish it was available when I started out
• Every run is logged with a full config snapshot
• Supports multirun for ablation studies across hyperparameters
And Parallel coordinate plots give a strong visual feel for key parameters.
I just got my third security audit back. All clear.
Most backend devs think HTTPS + JWT = secure. That's how you get owned.
Here are the security measures that actually work ↓
I wanted to open up a little about how I got into bug bounty and more importantly, why.
I’m 20 years old, and I started reporting and analyzing bugs on Immunefi around the beginning of this May. I’ve been coding since I was 13, and over the years I’ve picked up a lot of knowledge, not just in cybersecurity, but in many different fields. I’ve always been someone with a wide range of interests and a drive to learn as much as I can across different areas for years.
But this past year changed everything.
My family went through a really dark time. A series of unfortunate and complicated events left us bankrupt and dangerously close to being homeless. I won’t go into the full story, it’s deeply personal and honestly, painful but the short version is: we lost almost everything. There were days with no food in the house. The internet got cut off. We were inches away from sleeping on the street. I was at my lowest mentally, emotionally, financially.
That kind of pressure… it’s hard to describe. I had to drop out of college. It just wasn’t the time or the place. When your family is struggling to survive, lectures and grades suddenly don’t mean much. I knew I had to act. I had to find a way to help.
So I did the only thing I could, I put my skills to work. Even without Wi-Fi at home, I found ways. I spent my days at the library or public spaces with internet, locked in and focused. I worked 15 hours a day, every day, no distractions, no social life. I’d wake up at 5 a.m., grind until 9 p.m., then crash. And repeat. I was in pure isolation and I poured everything I had into bug bounty hunting.
And by some miracle, it worked. I found and reported dozens of bugs (many of which are still being negotiated for payout amount). The rewards helped me provide for my family, my mom and younger brother. That’s what kept me going. I’ve always cared more about the people I love than anything else, and being able to support them brought me a sense of peace. Every cent I made went to them first. That’s what made me happiest, to see them happy after such miserable situation.
I’ll be honest, I got lucky. If things had played out even a little differently a week or two late, we would've ended up on the street. There were many nights filled with fear and stress. But I didn’t stop. I kept going, even when it felt like I had nothing left. And I’m proud of that. I’m proud that I didn’t give up.
Most people my age are still figuring life out with the help of their parents. In my case, I had to be the one holding everything together. It wasn’t fair, but that’s life. And in all the hardship, I’ve learned things no classroom could ever teach me about resilience, love, sacrifice, and staying grounded when the ground itself feels like it’s falling away.
If you’re going through something hard right now, I just want to say: I see you. Keep going. Sometimes survival is success. And sometimes, when you least expect it, all that effort pays off.