Skip to content

Instantly share code, notes, and snippets.

Avatar

Earnestly

  • ᕕ( ᐛ )ᕗ
  • Little Rascal
View GitHub Profile
@Earnestly
Earnestly / c99_ub_list.rst
Last active Jul 29, 2020
C99 List of Undefined Behavior (193 Cases)
View c99_ub_list.rst

C99 List of Undefined Behavior

From N1256: (See http://port70.net/~nsz/c/c99/n1256.html#J.2)

  • A "shall" or "shall not" requirement that appears outside of a constraint is violated (clause 4).
  • A nonempty source file does not end in a new-line character which is not immediately preceded by a backslash character or ends in a partial preprocessing token or comment (5.1.1.2).
  • Token concatenation produces a character sequence matching the syntax of a universal character name (5.1.1.2).
  • A program in a hosted environment does not define a function named main using one of the specified forms (5.1.2.2.1).
  • A character not in the basic source character set is encountered in a source file, except in an identifier, a character constant, a string literal, a header name, a comment, or a preprocessing token that is never converted to a token (5.2.1).
  • An identifier, comment, string literal, character constant, or header name contains an invalid multibyte character or does not
@Earnestly
Earnestly / makepkg_overview.rst
Last active Jul 3, 2020
A brief overview of the process involved in creating a pacman package.
View makepkg_overview.rst

A Brief Tour of the Makepkg Process: What Makes a Pacman Package

Introduction

This is a terse document covering the anatomy of a package built for the pacman package manager.

The following example commands can mostly run verbatim to manually create a

@Earnestly
Earnestly / pulseserver.adoc
Last active Apr 19, 2020
PulseAudio as a Server
View pulseserver.adoc

Multiplexing Access to Audio Hardware via a Single PulseAudio Server

The goal of this setup is to create a single pulseaudio service which has sole access to the audio hardware while providing a server for many clients to use. This is not using the system wide mode as it doesn’t run as root, nor does it use the --system flag.

One disadvantage of this arrangement is the commands pacmd and pactl will no longer work when run as your user. Both rely on the user dbus

View !README: fc-glyph
fc-glyph - display all fonts which contain specified glyphs
View IRC protocol extensions.md

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.

@Earnestly
Earnestly / llpp.conf.xml
Last active Dec 21, 2019
Basic vi-like emulation using llpp's new keymapping. Also some other defaults and examples for custom fonts.
View llpp.conf.xml
<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 / !README: opentype-bitmap.pe and opentype-bitmap.py
Last active Aug 2, 2019
Convert PCF and BDF files to bitmap only OpenType (.otb) using fontforge
View !README: opentype-bitmap.pe and opentype-bitmap.py
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.
@Earnestly
Earnestly / basedev
Created Feb 8, 2014
A list of packages which should not be included in a PKGBUILD's "makedepend=()" array.
View basedev
binutils
glibc
linux-api-headers
tzdata
filesystem
iana-etc
zlib
file
autoconf
bash
@Earnestly
Earnestly / fonts.adoc
Last active Dec 13, 2018
Better Defaults for Freetype
View fonts.adoc

Better Defaults for Freetype

Table of Contents

Introduction

@Earnestly
Earnestly / statusbar.adoc
Last active May 7, 2018
Simple reactive statusbar
View statusbar.adoc
Table of Contents

The main event loop

statusdir=$XDG_RUNTIME_DIR/statusbar
mkdir -pm0700 "$statusdir"
You can’t perform that action at this time.