Skip to content

Instantly share code, notes, and snippets.

@sogaiu
sogaiu / jpm-janet-pm-docstring-tweaks.md
Created September 24, 2025 05:57
jpm, janet-pm docstring tweaks

janet-pm

  • JANET_MODPATH reference in docstring of declare-source should be removed
@sogaiu
sogaiu / ANSI.md
Created September 22, 2025 13:19 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@sogaiu
sogaiu / pdfs-and-passwords.md
Last active September 19, 2025 06:34
pdfs and passwords

linux and windows

  • libreoffice - exporting pdfs allows password setting (so in combination with opening a pdf in libreoffice first might be an option)
  • qpdf - password entry via command line unfortunate -- some versions allow entry via prompt (but exposed?)
    • --password-file=... (can use - for stdin?)
    • issue
    • post

windows

@sogaiu
sogaiu / gnucash-notes.md
Last active October 15, 2025 05:43
gnucash notes

gnucash notes

history and future

  • Roadmap
    • Replace GObject and GLib dependencies in the core
    • Scheme minimzation
    • Register rewrite
    • Eliminate deprecated widgets and libraries
    • Remove module system
@sogaiu
sogaiu / janet.wxs
Created September 14, 2025 05:00
somewhat annotated janet.wxs
<?xml version="1.0" encoding="UTF-8"?>
<?define Name = "Janet" ?>
<?define Description = "The Janet Programming Language" ?>
<?define Manufacturer = "Janet-Lang.org" ?>
<?define WebPage = "https://janet-lang.org" ?>
<?ifdef env.JANET_VERSION ?>
<?define Version = "$(env.JANET_VERSION)" ?>
<?else?>
<?define Version = "0.0.0" ?>
@sogaiu
sogaiu / adjust.sh
Last active September 8, 2025 11:22
crop and scale a bunch of images (has specific parameters hard-wired)
#! /bin/sh
# -resize:
# https://www.baeldung.com/linux/images-batch-scale-specific-size
#
# -trim:
# https://superuser.com/questions/1020396/batch-image-auto-crop-apply-fixed-width-and-maintain-aspect-ratio
#
# -crop (used before, not using now):
# https://superuser.com/questions/1161340/how-to-crop-an-image-using-imagemagick-from-the-command-line