Skip to content

Instantly share code, notes, and snippets.

View Slipyx's full-sized avatar
💭
pro grammin'

slipyx Slipyx

💭
pro grammin'
View GitHub Profile
@Slipyx
Slipyx / autoexec.cfg
Last active March 14, 2021 07:36
q2pro autoexec
seta vid_modelist "desktop 640x480@60 1024x768@60 1280x720@60"
seta vid_fullscreen "0"
seta vid_geometry "1280x720+80+0" //-2+128"
seta gl_shaders "1"
seta cl_adjustfov "1"
seta gl_dynamic "1"
seta gl_dlight_falloff "1"
seta cl_maxfps "60"
seta r_maxfps "0"
@Slipyx
Slipyx / Moved.md
Last active March 6, 2017 23:51
IRC bot development in Haxe
@Slipyx
Slipyx / redshirt2.py
Created September 23, 2018 11:44
Python script for redshirt2 file encryption & decryption
#!/usr/bin/python3 -tt
# redshirt2 file encryption & decryption
# reads and writes file contents from/to stdin & stdout
# algorithm adapted from dx9's php implementation.
# http://forums.introversion.co.uk/viewtopic.php?f=29&t=13803&start=60#p485984
#
# usage: ./redshirt2.py < infile > outfile
import sys
@Slipyx
Slipyx / oggplay.c
Last active March 18, 2021 10:50
Playing OGG music using stb_vorbis and OpenAL, with real-time control using ncurses. Based on code from: https://gist.github.com/Oddity0x0/965399
#include <AL/al.h>
#include <AL/alc.h>
#include <stdbool.h>
#include <stdio.h>
#include <time.h>
//#include <unistd.h>
#define STB_VORBIS_NO_PUSHDATA_API
#include "stb_vorbis.c"