Skip to content

Instantly share code, notes, and snippets.

@sogaiu
sogaiu / gist:559a3d75ccb6c2762d5fee6228160766
Last active July 28, 2025 12:42
thunderbolt on linux
https://askubuntu.com/a/985074
https://en.wikipedia.org/wiki/Thunderbolt_(interface)
msi prestige 15 a10sc - thunderbolt 3 - https://en.wikipedia.org/wiki/Thunderbolt_(interface)#Thunderbolt_3
dell latitude 5520 (11th gen) - thunderbolt 4 - https://en.wikipedia.org/wiki/Thunderbolt_(interface)#Thunderbolt_4
https://dockshub.com/thunderbolt-on-linux-debian-ubuntu-centos-archlinux/
@sogaiu
sogaiu / gist:2063586821b37165b5824e428a571be7
Last active July 27, 2025 08:11
taking apart a mac mini (a1347 - 2014?)
https://www.youtube.com/watch?v=Bx0VZ1qXibI <-- nice tips
https://www.youtube.com/watch?v=WjJ5ivQnP2s
@sogaiu
sogaiu / issues.md
Created July 27, 2025 06:23
tree-sitter doc issues

does anyone else find this section of the docs a little odd?

https://tree-sitter.github.io/tree-sitter/cli/init.html#example

i've only found one tree-sitter.json file that has a tree-sitter array -- most (all?) other tree-sitter.json files seem to have a grammars array.


also, the name key doesn't appear to be mentioned in the same page of the docs -- and iiuc one can get warnings without it (may be it's semi-required?).

@sogaiu
sogaiu / windows-11-installation-without-ms-account-creation.md
Created July 26, 2025 13:09
windows 11 installation without ms account creation

How to Set Up Windows 11 Without a Microsoft Account

To bypass the Microsoft Account requirement, proceed with the first few steps of the installation process normally until you reach this screen ("Let's add your Microsfot account")

Once you're there, press Shift + F10 to open up a Command Prompt Window and type:

oobe\bypassnro

It isn't case sensitive, but it is critical that you use the correct slash. Once you type in the command, press Enter and your PC will immediately restart.

@sogaiu
sogaiu / users-of-walk-postwalk-or-prewalk.md
Last active July 23, 2025 04:35
users of walk, postwalk, or prewalk

can fetch by git-some-janets: https://github.com/sogaiu/git-some-janets

git-some-janets junk-drawer 
git-some-janets hm
git-some-janets janet-unify
git-some-janets bauble
git-some-janets judge
git-some-janets macaroni
git-some-janets pat
@sogaiu
sogaiu / ssd-device-life-smart-notes.md
Last active July 20, 2025 11:04
ssd device life smart notes
  • Converting "Data Units Written" to "Total Host Writes"
    • At least for one disk CrystalDiskInfo reported both
      • Specific examples values
        • Total Host Writes (THW): 239GB (value reported in "top rightish" of window - screenshot in article)
        • Data Units Written (DUW): 0x7ac9a = 502938 (hex value reported in some row of table in "lower halfish" of window)
    • Adapting sample formula
      • (DUW * 1000 * 512) / (1024 * 1024 * 1024)
      • (502938 * 1000 * 512) / (1024 * 1024 * 1024)
  • 239.81952667236328
@sogaiu
sogaiu / config.el
Created July 19, 2025 07:22
emacs and stgit
(use-package magit-stgit
:elpaca (:host github
:repo "stacked-git/magit-stgit"
:files ("*.el")))
(use-package stgit
:elpaca (:host github
:repo "stacked-git/stgit"
:files ("contrib/*.el")))
@sogaiu
sogaiu / config.el
Created July 19, 2025 07:22
emacs and vsch
;;; vcsh
(use-package vcsh
:elpaca (:host nil
:repo "https://git.smrk.net/vcsh.el"
:files ("*.el")))
;;; magit-vcsh
(use-package magit-vcsh
:elpaca (:host nil
:repo "https://git.smrk.net/magit-vcsh.el"
@sogaiu
sogaiu / hearing-aids-and-bluetooth.md
Last active July 19, 2025 06:54
hearing aids and bluetooth