Skip to content

Instantly share code, notes, and snippets.

@torbiak
torbiak / groff-install-font
Last active November 21, 2023 21:26
Install ttf and otf fonts for use with groff
#!/usr/bin/env bash
# groff-install-ttf converts a TrueType (ttf) or OpenType (otf) font to a
# Printer Font ASCII (pfa) font and a groff font (ditroff) and installs them to
# groff's site-font directory.
#
# Requires fontforge.
#
# You're the best, Peter Schaffter, but contrary to the verbose and
# difficult-to-follow http://www.schaffter.ca/mom/momdoc/appendices.html#fonts,
# the t42 file doesn't seem to be necessary, at least with recent versions of
@zkirill
zkirill / gist:4fb42b4ba4b7cc58c4f0
Created March 7, 2016 23:19
Installing Rust and Cargo on FreeBSD
The package versions for Rust and Cargo are behind the port versions on FreeBSD at the moment so follow the instructions here to install the latest http://www.freshports.org/devel/cargo/ and http://www.freshports.org/lang/rust.
---
Optionally, get the latest ports with instructions from https://www.freebsd.org/doc/en/books/handbook/ports-using.html.
# portsnap fetch
# portsnap extract
# portsnap update