Skip to content

Instantly share code, notes, and snippets.

@chungy
chungy / conf.def.h.patch
Created November 25, 2013 21:24
my st customization
diff --git a/config.def.h b/config.def.h
index 2a7e098..f6d367f 100644
--- a/config.def.h
+++ b/config.def.h
@@ -5,7 +5,7 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
-static char font[] = "Liberation Mono:pixelsize=12:antialias=false:autohint=false";
+static char font[] = "DejaVu Sans Mono-10";
@chungy
chungy / umsdos_format.txt
Created December 8, 2013 02:29
Technical information about UMSDOS.
UMSDOS uses a fairly simple system to store metadata information in
the --LINUX-.--- files. Each full metadata block is a multiple of 64
bytes, up to 256 bytes, depending on the length of the filename.
UMSDOS uses a deterministic way to convert Linux filenames into
MS-DOS-compatible 8.3 style names, handling situations like
case-sensitivity, uniqueness when the filenames differ after the 8th
character, special filenames not allowed on MS-DOS and FAT, and so on.
It allows a fairly full set of typical POSIX functionality, only
lacking sparse file support (which would be impossible to implement
@chungy
chungy / zsnes.authors
Created December 28, 2013 03:25
zsnes.authors
z_demo_z = _Demo_ <[email protected]>
diablo-d3 = Diablo-D3 <Diablo-D3>
esaelon = esaelon <esaelon>
grinvader = grinvader <grinvader>
hpsolo = hpsolo <hpsolo>
ipher = ipher <ipher>
jbo_85 = jbo_85 <jbo_85>
mkendora = MKendora <MKendora>
n-a-c-h = Nach <Nach>
pagefault = pagefault <pagefault>

This repository is purely a staging one for converting Eternity from Subversion to Git. As the process is refined, force-pushes may happen frequently. Do not depend on it having stable references.

Authors

The author mapping file for this repository is still yet incomplete, the version currently used was:

#!/usr/bin/env bash
# Extracts thing from here: http://www.unforgettable.dk/
cat <<EOF
If you are not on a file system with features such as compression or
de-duplication, you will most likely run out of space! ... Unless you
happen to have 4.5PB to spare.
Will begin in 5 seconds. ^C now to abort.
#include <windows.h>
#include <stdio.h>
int main(void)
{
static const char* (CDECL *pwine_get_version)(void);
HMODULE hntdll = GetModuleHandle("ntdll.dll");
if(!hntdll) {
puts("Running on Windows 9x.");
return 1;
#!/bin/sh -
if [ $# -eq 0 ]; then
git_commit_date="$(date -ud "@$(git show -q --format=%ct HEAD)" +%Y-%m-%dT%H:%M:%SZ)"
git_commit_email="$(git show -q --format=%ce HEAD)"
else
git_commit_date="$(date -ud "@$(git show -q --format=%ct "$1")" +%Y-%m-%dT%H:%M:%SZ)"
git_commit_email="$(git show -q --format=%ce "$1")"
fi
@chungy
chungy / odamex.map
Created May 28, 2015 06:45
odamex authors
alexmax = Alex Mayfield <[email protected]> America/New_York
anarkavre = John Corrado <[email protected]> America/New_York
ghostlydeath = GhostlyDeath <[email protected]> America/New_York
Russell = Russell Rice <[email protected]> Pacific/Auckland
russellrice = Russell Rice <[email protected]> Pacific/Auckland
som = Stephen McGranahan <[email protected]> America/Chicago
deathz0r = Dean Joseph <[email protected]>
denis = Denis Lukianov <[email protected]>
dr_sean = Sean Leonard <[email protected]>
hypereye = Mike Wood <[email protected]>
@chungy
chungy / README.adoc
Last active July 31, 2023 19:18
minecraft systemd service

Use these files for managing a Minecraft server with systemd.

Place minecraft.service in /etc/systemd/system, and run systemctl daemon-reload. minecraft should go into /etc/conf.d or an equivalent directory (change the path in the service too). /etc/conf.d/minecraft should not have world permissions. chown root:root and chmod 600 the file.

The user and group minecraft should exist. The minecraft user should only be a member of the minecraft group, for system security.

[xboxdrv]
evdev = /dev/input/by-id/usb-Microsoft_Controller_7EED8FE138A3-event-joystick
mimic-xpad = true
evdev-grab = true
evdev-debug = false
silent = true
[evdev-absmap]
ABS_HAT0X = dpad_x
ABS_HAT0Y = dpad_y