Skip to content

Instantly share code, notes, and snippets.

@zec
zec / 1 grub-menu-20241226.txt
Last active December 27, 2024 01:40
A failed attempt to boot with GRUB (Debian version 2.12-5) on a Thinkpad T14s Gen 6 Snapdragon
setparams 'Debian GNU/Linux GNU/Linux'
set pager=1
set debug=all,-scripting,-lexer,-efidisk,-fs,-fat,-xfs,-zfs
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 40bc4958-9c1d-4815-820b-46c2e866950a
@zec
zec / mktfms.py
Created November 19, 2010 01:50
Script to create .tfm and .enc files for a PostScript-flavored OpenType font for pdfTeX
#!/usr/bin/env python
# Copyright (c) 2010 Zachary Catlin
# MIT-licensed; see full license at end-of-file.
# A Python/FontForge script that creates subfont TeX metrics and encoding files
# of a given PostScript-flavored OpenType font, much the way ttf2tfm(1) creates
# subfont files for TrueType fonts. This allows the font to be used with the
# LUC encoding provided by the LaTeX ucs package. Also, the script exports the
# original font to Type1 format for more flexible use by pdfTeX. All generated