Skip to content

Instantly share code, notes, and snippets.

@Bankst
Bankst / Install-UT2004.md
Created July 19, 2024 20:03 — forked from telyn/Install-UT2004.md
Installing UT2004 on a linux

So you want to install UT2004 on some Linux? Because 10 year old games are the best games.

You will need:

  • UT2004 (The GOG copy or the original DVD will both work, as will presumably any other copy of UT2004)
  • The latest (3369) linux patch for UT2004
  • A CD key. If you want to run a dedicated server, generate yourself a server key at https://forums.unrealtournament.com/utserver/cdkey.php?2004
  • libstdc++.so.5 (could also end .so.5.X.Y where X and Y are numbers, this is also fine) built for i386 linux. the 64-bit build of UT2004 is sadly broken (can't rebind ports on map changes, making the web interface useless after the first map), so i386 is the way forward.

The steps:

@Bankst
Bankst / mover_script.sh
Last active May 15, 2022 21:26
SnapRAID Mover script
#!/bin/bash
# Takes advantage of GNU Parallel
# https://www.gnu.org/software/parallel/man.html
if [ $# != 3 ]; then
echo "Usage: $0 <cache mount> <backing mount> <end usage percentage>"
exit 1
fi
@Bankst
Bankst / dtop.py
Last active May 1, 2022 07:07
better-docker-stats
#!/usr/bin/python3
import subprocess
import argparse
import sys
import re
import os
allowed_keys = dict(
name="Name (Default)",
cpu="CPU Usage",
@Bankst
Bankst / install.sh
Last active December 3, 2019 18:45
Raspi Chameleon Install Script V1
#!/bin/sh
# setup script for Chameleon Vision on Raspberry Pi 3 and 4
is_pi() {
ARCH=$(dpkg --print-architecture)
if [ "$ARCH" = "armhf" ] ; then
return 0
else
return 1
fi
@Bankst
Bankst / JoystickAnalogButton.java
Created September 28, 2016 21:42 — forked from jcorcoran/JoystickAnalogButton.java
This class turns an analog axis on a Joystick device, into a button which can be used to trigger commands.It is intended to be used with the WPILib Command Based robot project on FRC robots.
import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.buttons.Button;
/**
* This class allows you to trigger commands from an analog input on
* a joystick (sich as the triggers - Axis 3).
*
*
* The following example code placed in OI class turns axis 3 into two buttons:
* ----------------------------------------------------------------------------