Skip to content

Instantly share code, notes, and snippets.

View Earnestly's full-sized avatar

Earnestly

  • The Black Gate
View GitHub Profile
@Earnestly
Earnestly / cvimrc.vim
Last active August 29, 2015 14:08
cvimrc
set noautofocus
set nosmoothscroll
let autoupdategist = true
let scrollstep = 200
let barposition = "bottom"
let searchengine b = "https://duckduckgo.com/html/?q=!"
let defaultengine = "b"
@Earnestly
Earnestly / dealing_with_failed_install.rst
Last active October 17, 2016 18:49
Dealing with Installation Interruptions with Pacman

A Method to Correct Interrupted Installations with Pacman

An upgrade via pacman could be broken down into three phases:

1) Sync

Updates the sync databases with, if any, new packages. These are downloaded from the mirrors usually as gzip files located in /var/lib/pacman/sync such as core.db and extra.db.

@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
@Earnestly
Earnestly / basedev
Created February 8, 2014 14:15
A list of packages which should not be included in a PKGBUILD's "makedepend=()" array.
binutils
glibc
linux-api-headers
tzdata
filesystem
iana-etc
zlib
file
autoconf
bash

IRC protocol extensions

Original IRC protocol

Original protocol (IRCv2): [RFC 1459][rfc1459]

Later updated by [RFC 2810][rfc2810], [RFC 2811][rfc2811], [RFC 2812][rfc2812], [RFC 2813][rfc2813], but few servers follow these completely. IRCnet is probably the most complete implementation.

fc-glyph - display all fonts which contain specified glyphs
#!/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 / llpp.conf.xml
Last active February 22, 2022 10:20
Basic vi-like emulation using llpp's new keymapping. Also some other defaults and examples for custom fonts.
<llppconfig>
<ui-font size='18'>
<![CDATA[/home/earnest/.local/share/fonts/Fontin-Regular.otf]]>
</ui-font>
<defaults zoom='100'
auto-scroll-step='12'
horizontal-scroll-step='24'
case-insensitive-search='true'
uri-launcher='$BROWSER &quot;%s&quot;'
@Earnestly
Earnestly / fonts.adoc
Last active March 17, 2022 08:04
Better Defaults for Freetype

Better Defaults for Freetype

Table of Contents

Introduction

@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.