24-10#
git add changes to specific commit#
While working on my feature branch, I wanted to put currently staged changes into a previous commit with hash 3ff52a6d5
.
Here’s how:
git stash
git rebase -i 3ff52a6d5^
# Change `pick` to `edit` for 3ff52a6d5
# Note the ^ after 3ff52a6d5. Rebase targets the parent, so we need to go one
# commit futher back in history.
git stash pop
git ci --amend
git rebase --continue
Meta trains AI on 24k H100 GPUs#
That’s ~17GW (700W * 24000 = 16800000
) of power consumption [1].
xdg-open#
Check mime-type of a file:
xdg-mime query filetype /tmp/index.html
Get default application for text/html
:
xdg-mime query default text/html
Set sane XDG defaults, e.g. for HTML files:
xdg-mime default firefox.desktop text/html
Use eye of gnome for jpeg and png images
xdg-mime default org.gnome.eog.desktop image/jpeg image/png
Android Reduce Motion (Disable Animations)#
Makes Android feel a lot faster / more snappy.
English: Settings > Accessibility > Remove Animations
German: Einstellungen > Eingabehilfe > Verbesserungen der Sichtbarkeit > Animationen entfernen