Skip to content

Instantly share code, notes, and snippets.

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

#!/usr/bin/env python3
from ipaddress import IPv4Address, IPv6Address
from random import randint
# Unicast MAC addresses can’t have an odd first octet. Also generate
# a whole bunch just to improve use in making a whole VM setup.
mac_mask = 0xFE_FF_FF_FF_FF_FF
print("MAC addresses:")
for i in range(0, 10):
mac = mac_mask & randint(0, 2 ** 48 - 1)
#urlbar[breakout-extend] {
top: calc(
(var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2
) !important;
left: calc(
(var(--urlbar-toolbar-width) - var(--urlbar-width)) / 2
) !important;
width: 100% !important;
}
[ExclusionList]
/lost+found
/*/.cache
/*/.local/share/Trash

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:

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

[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 / 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>
@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