Skip to content

Instantly share code, notes, and snippets.

Avatar

David Gow sulix

View GitHub Profile
@sulix
sulix / babobba-sysinfo.txt
Created Jul 29, 2022
babobba-sysinfo.txt
View babobba-sysinfo.txt
Ordinateur
Fabricant : Valve
Modèle : Jupiter
Type : ordinateur portable
Aucun écran tactile détecté
Processeur
Fabricant du CPU : AuthenticAMD
Marque du processeur : AMD Custom APU 0405
Famille du processeur : 0x17
@sulix
sulix / sparky-steam-sysinfo.txt
Created Jul 29, 2022
sparky-steam-sysinfo.txt
View sparky-steam-sysinfo.txt
Computer Information:
Manufacturer: Gigabyte Technology Co., Ltd.
Model: Z87X-UD5H-CF
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
CPU Family: 0x6
@sulix
sulix / glx_wrapper.c
Last active Apr 25, 2022
A hacky implementation of just the bits of GLX that Cg requires on top of SDL2, so you can run Cg-using games under Wayland
View glx_wrapper.c
// A hacky implementation of just the bits of GLX that Cg requires on top of SDL2
//
// All blame should go to David Gow <david@davidgow.net>
//
// Build it with:
// cc -g -o libglx_wrapper.so glx_wrapper.c `sdl2-config --cflags --libs` -fpic --shared
// cc -g -m32 -o libglx_wrapper32.so glx_wrapper.c `/usr/lib/baselibs-32bit/bin/sdl2-config --cflags --libs` -fpic --shared
//
// Then run your game with:
// SDL_VIDEODRIVER=wayland SDL_DYNAMIC_API=path-to/libSDL2-2.0.so.0 LD_PRELOAD=libglx_wrapper.so
@sulix
sulix / civctp_wrapper.c
Created Mar 21, 2022
Loki CivCTP function wrapper
View civctp_wrapper.c
// Step 1: Hex-Edit the civctp.dynamic executable
// - Rename the libSDL import to point to SDL 1.2
// - Rename all the functions below in the import tables:
// - __builtin_new → x_builtin_new (etc.)
// - {mem,str,strn}cpy → {mem,str,strn}cpx
// - Make sure you have libttf and libsmpeg in the current directory
// - Build this with:
// cc -shared -m32 -fPIC -o libcivctp_wrapper.so civctp_wrapper.c
// - Run CivCTP with:
// LD_PRELOAD=libcivctp_wrapper.so LD_LIBRARY_PATH=. ./civctp.dynamic
View keybase.md

Keybase proof

I hereby claim:

  • I am sulix on github.
  • I am sulix (https://keybase.io/sulix) on keybase.
  • I have a public key whose fingerprint is 504F FEFC 668F B083 002B 2D3B BE88 5DD4 C280 C594

To claim this, I am signing this object: