Skip to content

Instantly share code, notes, and snippets.

View Earnestly's full-sized avatar

Earnestly

  • The Black Gate
View GitHub Profile
@Earnestly
Earnestly / Makefile
Last active April 23, 2018 00:04
Mouse pointer centering for X11
PREFIX = /usr/local
bindir = /bin
LDLIBS := $(shell pkg-config --libs-only-l x11 xi)
all: mouse-spring
install:
install -Dm0755 mouse-spring $(DESTDIR)$(PREFIX)$(bindir)/mouse-spring
:xdg-support: https://wiki.archlinux.org/index.php/XDG_Base_Directory
:xdg-spec: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
:fhs: https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
:madness: http://pub.gajendra.net/2012/09/dotfiles
:litter: https://www.reddit.com/r/linux/comments/971m0z/im_tired_of_folders_littering_my_home_directory/
:systemd: https://www.freedesktop.org/wiki/Software/systemd/
:systemd-fhs: https://www.freedesktop.org/software/systemd/man/file-hierarchy.html
:systemd-fhs-bin: https://www.freedesktop.org/software/systemd/man/file-hierarchy.html#~/.local/bin/
:toc: macro
fc-glyph - display all fonts which contain specified glyphs
@Earnestly
Earnestly / !README: opentype-bitmap.pe and opentype-bitmap.py
Last active March 4, 2023 07:25
Convert PCF and BDF files to bitmap only OpenType (.otb) using fontforge
Convert PCF and BDF files to bitmap only OpenType (.otb) using fontforge
If you have a new enough fontforge, the python version of this script can
optionally read filenames from standard input, generating multiple .otb
font files as it finds new families. It also handles gzipped PCF and BDF
files.
#!/bin/python
import os, sys, hashlib
def main():
progname = 'epub-font-obfuscation'
algorithms = {'idpf': 1040, 'adobe': 1024}
if len(sys.argv) > 2:
uid = sys.argv[1]
@Earnestly
Earnestly / posix-issue8.md
Last active October 30, 2024 12:40
A Selected List of Additions and Changes Coming With POSIX Issue 8