Skip to content

Instantly share code, notes, and snippets.

https://stackoverflow.com/questions/1260748/how-do-i-remove-a-submodule
@sogaiu
sogaiu / gist:ef6aaf16046ca9ad0462a75460ed3b8b
Created July 24, 2024 04:00
git repositories within git repositories...
* https://stackoverflow.com/questions/4500305/git-repository-within-git-repository
* https://stackoverflow.com/questions/1811730/how-do-i-work-with-a-git-repository-within-another-repository
* https://web.archive.org/web/20160510065718/http://boxysystems.com/index.php/nested-git-repo-gotchas/
* not checking whether transitive deps are already installed?
* specific case was janet-playground which has direct deps of osprey and spork.
with osprey's deps uninstalled (but osprey still installed), jpm deps
for janet-playground doesn't reinstall osprey's deps
@sogaiu
sogaiu / termios-various.md
Last active July 23, 2024 12:18
termios struct for various operating systems
@sogaiu
sogaiu / gist:3e40baeea124a7de64a015496c0b046b
Created July 23, 2024 04:20
setting up new account in windows 10/11 home with certain settings in place
* account settings
* info leakage prevention
* browser settings
* info leakage prevention
@sogaiu
sogaiu / gist:8e082ff28fffa839990ed7b40673d905
Created July 23, 2024 03:33
literal bracket tuple as argument to function
$ janet
Janet 1.35.2-771956b5 linux/x64/gcc - '(doc)' for help
repl:1:> (disasm (fn [] (printf "%j" [:a])))
{:arity 0
:bytecode @[(ldc 0 0) (ldc 1 1) (push2 0 1) (ldc 0 2) (tcall 0)]
:constants @["%j" (:a) <cfunction printf>]
:defs @[]
:environments @[]
@sogaiu
sogaiu / gist:703b13ef2f3bf71a915e4dd42be11b5d
Created July 22, 2024 11:46
firefox link usage via keyboard...
https://lists.gnu.org/archive/html/emacs-orgmode/2016-04/msg00277.html
try typing single quote followed by text to match a link to follow...
@sogaiu
sogaiu / gist:376a7908ebdef8aed13d960b04c5498a
Last active July 19, 2024 12:30
spork/path relpath for windows exploration
$ janet
Janet 1.35.2-771956b5 linux/x64/gcc - '(doc)' for help
repl:1:> (import spork/path)
@{_ @{:value <cycle 0>} path/abspath @{:private true} path/abspath? @{:private true} path/basename @{:private true} path/delim @{:private true} path/dirname @{:private true} path/ext @{:private true} path/join @{:private true} path/normalize @{:private true} path/parts @{:private true} path/posix/abspath @{:private true} path/posix/abspath? @{:private true} path/posix/basename @{:private true} path/posix/delim @{:private true} path/posix/dirname @{:private true} path/posix/ext @{:private true} path/posix/join @{:private true} path/posix/normalize @{:private true} path/posix/parts @{:private true} path/posix/relpath @{:private true} path/posix/sep @{:private true} path/relpath @{:private true} path/sep @{:private true} path/win32/abspath @{:private true} path/win32/abspath? @{:private true} path/win32/basename @{:private true} path/win32/delim @{:private true} path/win32/dirname @{:private true} path/win32/ext @{:priva
@sogaiu
sogaiu / pth.janet
Last active July 21, 2024 13:23
work on "expanding" spork/path
# based on code from spork/path by bakpakin
# https://en.wikipedia.org/wiki/Path_(computing)
# unclear whether unc paths should be covered or not
(defn abspath?
[path &opt doze?]
(default doze? (= :windows (os/which)))
(if doze?