Skip to content

Instantly share code, notes, and snippets.

@sogaiu
sogaiu / efibootmgr-notes.md
Last active June 11, 2026 09:11
using efibootmgr to edit entries

use efibootmgr to show existing entries:

# efibootmgr

(-v can give more info)

creating a boot entry is a little involved...for nvme drive, use names like nvme0n1 for --disk / -d,

@sogaiu
sogaiu / linux-nvme-names.md
Created June 10, 2026 12:39
ssd device file names on linux: nvme0, nvme0n1, nvme0n1p1
(defn num-digits
[x]
(if (= x 0)
1
(math/floor (inc (math/log10 x)))))
(comment
(num-digits 0)
# =>

clone emacs, checkout emacs-31 branch, then:

TREE_SITTER_CFLAGS=-I$HOME/.local/include \
TREE_SITTER_LIBS="-L$HOME/.local/lib -ltree-sitter" \
./configure \
  --prefix=$HOME/.local/stow/emacs-31.x \
  --with-cairo \
  --with-tree-sitter \
 --with-gnutls=ifavailable
@sogaiu
sogaiu / wiawtf.md
Last active June 2, 2026 02:36
wiawtf - what is and why this file

"what is and why this file" - wiawtf

  • one idea is to have a "scanner" that one can point at a directory and it produces a db (e.g. sqlite or some other persistent record) of its results. this could have an incremental mode so that after things have been added and/or removed from a directory, the scanning can take place again.

    the db can be used as the basis for asking a user questions about the various files. possibly it could be used repeatedly over time to gradually get answers to questions about why some file is being tracked. possibly it's

ventoy was quite nice, but:

  • issues with secure boot
  • somewhat unclear status regarding the bits involved

thus the search for alternatives:

@sogaiu
sogaiu / a51-notes.md
Created May 25, 2026 12:33
alternative rom info for samsung galaxy a51
@sogaiu
sogaiu / android-notes.md
Last active May 27, 2026 10:51
android notes