Skip to content

Instantly share code, notes, and snippets.

@sogaiu
sogaiu / gist:cb24d0f009af12e36fb961c1d251c420
Created May 28, 2024 10:45
coping with emacs splitting a window to the side when what you want is splitting below
try adjusting `split-width-threshold` to be larger
https://emacs.stackexchange.com/questions/39034/prefer-vertical-splits-over-horizontal-ones
@sogaiu
sogaiu / clever-commenting-trick-inclojure.md
Created May 28, 2024 10:25
clever commenting trick in clojure
@sogaiu
sogaiu / ts-clojure-tips.md
Created May 21, 2024 12:03
ts-clojure tips - tree-sitter-clojure testing info
  • there is a clojars-repos private repository that can be cloned to skip the long process of fetching jars and extracting them. once cloned it can be symlinked to from:

    <ts-clojure>/clojars-samples/data/clojars-repos

@sogaiu
sogaiu / janet-packaging-libraries-concerns.md
Created May 21, 2024 04:47
janet packaging / libraries concerns
  • installation of one project clobbering dependencies of an already installed project, leading to breakage
  • dependency disappearance
    • vanishing from "source" (e.g. repository no longer accessible)
    • overwriting of commits (e.g. via git push --force)
  • multiple versions
    • ability for system to have multiple versions installed at the same time?
    • ability for single project to make use of multiple versions of a library at the same time?
    • dependency on part of a repository
      • example: spork has multiple modules. would like to be able to use one module from a particular version and another module from a different version.
@sogaiu
sogaiu / gist:ebf7c091e984555cef10d6e1fcd700f5
Created May 4, 2024 11:47
prevent chromium from bringing up dialog box at startup
cp /usr/share/applications/chromium.desktop ~/Desktop/
# edit ~/Desktop/chromium.desktop so its Exec lines have --password-store=basic on them
desktop-file-install --dir=$HOME/.local/share/applications ~/Desktop/chromium.desktop
update-desktop-database ~/.local/share/applications
@sogaiu
sogaiu / obs-per-user-plugin-installation-info.md
Created May 1, 2024 04:24
example file / directory layout for a per-user installation of an obs plugin

in the case of obs-localvocal, after a successul linux build, copy files and directories from:

release/RelWithDebInfo/lib/x86_64-linux-gnu/obs-plugins
release/RelWithDebInfo/share/obs/obs-plugins

such that one ends up with the following arrangement:

@sogaiu
sogaiu / void-linux-setup-notes.md
Last active May 7, 2024 09:16
void linux setup notes

follow steps in handbook to install

external display connected (confirmed via xrandr) but not displaying

@sogaiu
sogaiu / gist:35a8c678e4f08d37c9fbc661cb7fb41b
Created April 30, 2024 11:29
The Language of “Racial Mixture”: How Ainoko became Haafu, and the Haafu-gao Makeup Fad
https://jayna.usfca.edu/asia-pacific-perspectives/center-asia-pacific/perspectives/v14n2/okamura.html
http://www.kreuzungsstelle.com/
@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>