Skip to content

Instantly share code, notes, and snippets.

#!/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;
@chungy
chungy / odamex.map
Created May 28, 2015 06:45
odamex authors
alexmax = Alex Mayfield <alex@outpostdesign.com> America/New_York
anarkavre = John Corrado <alex@outpostdesign.com> America/New_York
ghostlydeath = GhostlyDeath <ghostlydeath@remood.org> America/New_York
Russell = Russell Rice <russell@odamex.net> Pacific/Auckland
russellrice = Russell Rice <russell@odamex.net> Pacific/Auckland
som = Stephen McGranahan <somtwo@gmail.com> America/Chicago
deathz0r = Dean Joseph <deathz0r@odamex.net>
denis = Denis Lukianov <denis@voxelsoft.com>
dr_sean = Sean Leonard <sean@odamex.net>
hypereye = Mike Wood <mwoodj@huntsvegas.org>
@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_ <z_demo_z@users.sourceforge.net>
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>
[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
@chungy
chungy / chocolate-doom-under-cygwin.adoc
Created February 3, 2017 20:19
Compiling Chocolate Doom under Cygwin

Intalling cygwin

Select the packages:

  • autoconf

  • automake

  • git

  • mingw64-i686-SDL2

  • mingw64-i686-SDL2_mixer

  • mingw64-i686-SDL2_net

#!/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

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: