Skip to content

Instantly share code, notes, and snippets.

@csgordon
csgordon / languages.toml
Created March 3, 2025 19:44
Helix editor config for LaTeX
[language-server.texlab]
config.texlab = { build = {onSave = true,args=["-pdf", "--shell-escape", "-interaction=nonstopmode", "-synctex=1", "%f"]} }
[[language]]
name = "latex"
auto-format = false
scope = "source.tex"
file-types = ["tex"]
comment-token = "%"
indent = { tab-width = 2, unit = " " }
\<html:link>[rel]{stylesheet}[href]{https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/dark.min.css}
\<html:script>[type]{module}{
import hljs from 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/es/highlight.min.js';
import ocaml from 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/es/languages/ocaml.min.js';
hljs.registerLanguage('ocaml', ocaml);
hljs.highlightAll();
}
\p{Now we can syntax highlight some code}
\<html:pre>{\<html:code>[class]{language-ocaml}{let id x = x;;}}
@csgordon
csgordon / fbsd15setup.md
Created April 16, 2026 19:28
FreeBSD Setup 2025; update in progress

Linux Compat

I roughly followed the directions I've used for years (https://www.micski.dk/2021/12/21/install-ubuntu-base-system-into-freebsds-linux-binary-compatibility/), with a few changes:

  • I put the installation at /compat/debian (and consequently, renamed the RC script and updated the text accordingly)
  • I installed Debian Trixie (specify trixie for the distribution instead of the Ubuntu variant)

This sets up a basic Debian chroot environment, but importantly it also arranges for various /dev entries to be populated within the chroot,