Skip to content

Instantly share code, notes, and snippets.

@sogaiu
sogaiu / gist:2f11d48950a0fc9b210ffcb1bbb2197f
Created April 22, 2024 12:09
janet unix domain socket
# one terminal
$ janet
Janet 1.34.0-c01b32c4 linux/x64/gcc - '(doc)' for help
repl:1:> (def s (net/listen :unix "ptus" :datagram))
<core/stream 0x55DAD743F760>
repl:2:> (def buf @"")
@""
repl:3:> (def who (:recv-from s 1024 buf))
<core/socket-address 0x55DAD7442020>
diff --git a/cli/src/main.rs b/cli/src/main.rs
index 0337ead0..f38c8543 100644
--- a/cli/src/main.rs
+++ b/cli/src/main.rs
@@ -33,6 +33,7 @@ enum Commands {
Query(Query),
Highlight(Highlight),
Tags(Tags),
+ BuildWasm(BuildWasm),
Playground(Playground),
@sogaiu
sogaiu / alpine-linux-setup-notes.md
Last active April 22, 2024 12:28
alpine linux setup notes

Post-traumatic growth

During WWII, I was the navigator of a B-29 bomber based out of the Island of Saipan in the Pacific Ocean. Our mission was to bomb targets on the Japanese mainland. These were very high altitude and long range missions of 14 to 16 hours duration. The average age of our eleven man crew was 21. I was 22.

On January 27, 1945, our B-29 was shot down by a Japanese fighter plane over Tokyo at 32,000 feet. Fear and denial set in immediately among our crew, but realistically we all knew that we had to abandon our plane - it was on fire with two engines out. And as if that wasn't enough for us to worry about, the normally pressurized and heated interior of our plane had been ruptured and we were dealing with an outside air temperature of 58 degrees below zero at 32,000 feet. We would freeze solid if we didn't act fast. We had no choice but to attempt to parachute out of our disabled bomber, and to do so as fast as possible.

As the order went out, "Bail out, Bail out" we were terror-stricken you

@sogaiu
sogaiu / gist:a951e5184439fddb8c255f8448415005
Last active March 11, 2024 10:49
windows 10/11 install, backup, and restore
* clonezilla backed up (and verified) a basic install of windows 10 (with updates) in a bit over 10 mins
* alternative stable - 20240116-mantic (ubuntu-based) worked, but debian-based seemed to not detect nvme drive
* https://askubuntu.com/a/802056
* https://clonezilla.org/fine-print-live-doc.php?path=./clonezilla-live/doc/01_Save_disk_image/06-dev-img.doc#06-dev-img.doc
* restoration took around 10 minutes (including a pre-verify) - no bios fiddling was necessary
* windows 10 setup issue
* after installing from media, during the usual windows udpate process, there may be an error that doesn't seem
possible to go beyond (keep getting "retry"). don't have the error code for it atm, but the size of the
recover partition may be too small (c. 500 MB). shrinking the partition before the recover partition
@sogaiu
sogaiu / systems- notes.md
Created March 10, 2024 04:47
notes about systems

Would Be Nice If

  • Entirely configurable in an acceptable programming language
  • Allows rolling back broken system updates easily
  • Allows installing multiple versions of a package
  • Community that cooperates with other user communities
  • User repositories a la nix user repositories
  • Package parameters
  • Conforms to file hierarchy standard
  • Doesn't adopt and/or maintain privacy-infringing practices
@sogaiu
sogaiu / post-windows-update-settings-for-windows11.md
Last active March 24, 2024 11:24
post windows update settings for windows11
  • Put as many changes as possible into a single .reg file and apply

  • What to tweak

    • Date / time format (e.g. 24 hour, 0 padding, etc.)
    • Taskbar on left
    • Power settings so longer-term battery life is accounted for
    • Disable automatic bios updates (see device manager -> firmware -> disable all items within - better is to do through bios, but this may not be possible depending on the machine)
    • Other?
@sogaiu
sogaiu / windows-11-ssd-free-space-wiping.md
Last active March 7, 2024 11:29
windows 11 ssd free space wiping