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
There is a very good explanation by @paul_irish how this was made
youtu.be/Z2ZXW2HBLPM?si=Rq9L…
2
296
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
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
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
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…
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…
git blame will soon read .git-blame-ignore-revs by default. One less thing to configure per clone.
h/t @samccone
ihabkhattab.com/til/git-blam…
1
3
283
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…
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…
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
















