Ihab Khattab (@HO_BA) header
Ihab Khattab (@HO_BA) profile picture

Frontend Engineer

~
Joined August 2007
Squash-merging PRs? git branch --delete-merged won't clean up those branches, since their original commits never reach main. I added a git-only alias to my TIL that uses git cherry to catch them: ihabkhattab.com/til/git-bran…
1
1
144
git cherry isn't git cherry-pick. cherry-pick copies a commit. cherry only checks: for each commit on your branch it prints + (not on main yet) or - (main already has the same change, even under a different commit ID). It compares diffs, not commit IDs. That's how the alias spots a squash-merged branch.
17
طب ما ده كلام محترم
عملت بديل لـ Wispr Flow بيفهم المصري بتدوس على زرار وتتكلم عادي، والكلام يتكتب مكان ال cursor في أي برنامج، أو يتترجم إنجليزي أو أي لغة تانية. كله شغال من غير إنترنت، ومفيش أي كلام بيطلع من جهازك.
165
طب ما ده كلام محترم يا قابطني
Cryptography Incident Review Group cirg.org/
165
Been having fun playing with my website lately ✨
4
226
TIL macOS has shipped a terminal version of the Caffeine app since 2012: caffeinate -dims Keeps your Mac awake until Ctrl+C. Add -t 7200 for 2 hours. Better: put it in front of a long command and it stays awake only until that finishes: caffeinate -i npm run build The flags: -d keep the display on -i block idle sleep -m block disk sleep -s block system sleep (on power only) -t stop after N seconds
2
1
9
504
عالمية والله
2
120
I use AI to write my blog posts. English isn't my first language, and I'm scared of getting facts wrong. After this video, I stopped hiding it. Every post now says how AI was involved: ihabkhattab.com/ai
Chat, we're getting grilled on YouTube 😅 Jokes aside, the video and the comments are about AI-assisted writing, and some people are fine with it while others really aren't. Honestly, they raised some good points that have me rethinking how I'll write going forward. Worth a watch: youtu.be/Txx4T6oIpUo?si=HhOb…
1
8
644
ممكن نعرف اى طبيعة الاجتماعات اللي تخلي مديرة مكتب تلبس قمصان نوم مع مديرها
1
2
281
It's Monday and you're adding dark mode. No error. No warning. The bug isn't in your code. ihabkhattab.com/blog/what-pe…
5
349
JavaScript Maps now have getOrInsert(), so you can finally stop writing the same if in every LeetCode solution. Except on LeetCode. It still runs Node 22 🤦 ihabkhattab.com/til/map-get-…
1
4
179
my Ghostty settings. yes the font size is 22. my eyes and I have reached an agreement 👴 font-size = 22 theme = Night Owl # Brighter gray for autosuggestions and dim text (5.22:1 on #011627) palette = 8=#7a8b99 # Safety net: Ghostty raises any fg/bg pair below this ratio minimum-contrast = 3
2
144
my Ghostty settings. yes the font size is 22. my eyes and I have reached an agreement 👴 font-size = 22 theme = Night Owl # Brighter gray for autosuggestions and dim text (5.22:1 on #011627) palette = 8=#7a8b99 # Safety net: Ghostty raises any fg/bg pair below this ratio minimum-contrast = 3
1
5
296
Users click, the page freezes for two seconds, and the spinner never shows. Why? And why don't a forced reflow, an await, or one requestAnimationFrame fix it? The answer and a live demo of every version are in the post: ihabkhattab.com/blog/the-spi…
1
1
2
73
10,187
ولا ده موسم يوسف
HAMO EL MORSHEDY X KENDRICK LAMAR [MASHUP] sorry
4
471
TIL: don't wrap a card in <a>. Screen readers read the whole card as the link's name. Put the link on the title and stretch it over the card with ::after instead. ihabkhattab.com/til/stretche…
1
8
960
mdfor.dev's Mermaid diagrams are now ~12x faster to redraw and ship 79% less JS. I swapped Mermaid.js for Pele (pele.run) from @kepano. • JS for one flowchart: 732 kB → 151 kB gz • Redraw 22 diagrams after an edit: 302 ms → 25 ms • Light/dark is pure CSS, no redraw 22/22 diagram types still render (a few look different). PR lists everything: github.com/ikhattab/md-previ…
3
2
46
3,038
karakeep is sitting at 29,999 GitHub stars. One more gets it to 30k 🎉 It's a self-hostable bookmark-everything app: links, notes, images, with AI auto-tagging and full-text search. Be the star that tips it ⭐ github.com/karakeep-app/kara…
1
2
1
77
5,639
We've decided to sunset Arc on December 22, 2026. That's not an easy sentence to write. We spent years building Arc and celebrating each and every release along the way: we have so much pride and love for what we made alongside the Arc community. Our priority is to deliver best-in-class security for our members. Keeping a browser secure takes constant, dedicated work that is only increasing in the age of AI. Dia was built from the ground up to meet today’s security standards, so that's where our engineering and security teams will focus moving forward. We've worked to make switching to @diabrowser as easy as possible for Arc members. Here's how: · Your passwords, bookmarks, extensions and history come over to Dia seamlessly. · Spaces, Folders, and Tab Groups are in Dia and import over with your data intact. · Dia now surpasses Arc benchmarks in stability, speed, and security. · The browser features you use in Arc are free in Dia, and the AI is optional. Thank you for using Arc, for pushing us to make it better, and for building alongside us. The team that made Arc is the same team behind Dia, and some of our most ambitious work is just ahead. We'd love for you to be there with us when it lands.
1
6
1,154