Skip to content

Instantly share code, notes, and snippets.

View Kr3m's full-sized avatar

Kevin Remisoski Kr3m

View GitHub Profile
@Kr3m
Kr3m / gist:c431346ab47ecd0f1b5300c9b3c329bc
Created October 22, 2026 07:00
QLMover Privacy Policy
Privacy Policy for QLMover
Last Updated: October 24, 2023
1. Introduction
This Privacy Policy explains how QLMover ("the Bot", "we", "us", or "our") collects, uses, and protects your information when you use the Bot on Discord. By using the Bot, you agree to the collection and use of information in accordance with this policy.
2. Information We Collect
To provide its core functionality (matching Steam IDs to Discord users and moving users between voice channels), the Bot collects and stores the following data:
Discord Data: Discord User IDs, Server (Guild) IDs, and Voice Channel IDs.
@Kr3m
Kr3m / gist:3b63a481007a25d9b1eef57f243f305e
Last active October 22, 2026 06:59
QLMover Terms of Service
Terms of Service for QLMover
Last Updated: October 24, 2023
1. Introduction
Welcome to QLMover ("the Bot", "we", "us", or "our"). These Terms of Service ("Terms") govern your use of the QLMover Discord application. By inviting the Bot to your Discord server or interacting with it, you agree to these Terms. If you do not agree, please remove the Bot from your server.
2. Description of Service
QLMover is a utility bot designed to bridge Discord and Quake Live. Its core functionalities include:
Mapping Steam IDs to Discord users.
@Kr3m
Kr3m / CGaz_StrafeHud.c
Created May 1, 2024 20:49 — forked from Jelvan1/CGaz_StrafeHud.c
Quake 3 DeFRaG 1.91.26 - CampingGaz-Hud (speedometer, accel bar, compass, cgaz)
#define M_PI 3.14159274101f
typedef struct
{
vec3_t prev_vel; // 0x0
float prev_width; // 0xc
int prev_commandTime; // 0x10
} accelBarState_t;
accelBarState_t accelBarState; // 0x2b0bb0
@Kr3m
Kr3m / ardour-deps.sh
Created April 13, 2023 10:49
Ardour Dependency install script. Depends on nala.
#!/bin/bash
sudo nala install libboost-all-dev -y
sudo nala install libasound2-dev -y
sudo nala install libglib2.0-dev -y
sudo nala install glibmm-2.4-dev -y
sudo nala install libsndfile1-dev -y
sudo nala install libcurl4-gnutls-dev -y
sudo nala install liblo-dev -y
sudo nala install libtag1-dev -y
@Kr3m
Kr3m / assetfinder.sh
Created January 26, 2023 18:37
find assets in pk3 files in Quake 3.
#!/bin/bash
for file in *.pk3; do
if ( zipinfo -l "$file" | grep -q "$1"); then
echo "$file"
fi
done
@Kr3m
Kr3m / pretty git history
Created January 25, 2023 10:18 — forked from ecasilla/pretty git history
git-hist
##
# Creates an alias called "git hist" that outputs a nicely formatted git log.
# Usage is just like "git log"
# Examples:
# git hist
# git hist -5
# git hist <branch_name>
# git hist <tag_name> -10
##
git config --global alias.hist "log --pretty=format:'%C(yellow)[%ad]%C(reset) %C(green)[%h]%C(reset) | %C(red)%s %C(bold red){{%an}}%C(reset) %C(blue)%d%C(reset)' --graph --date=short"
@Kr3m
Kr3m / read_pk3s.sh
Created January 19, 2023 11:29
Output map names in pk3 files.
#!/bin/bash
find /home/qlserver/serverfiles/steamapps/workshop/content/282440 -name '*.pk3' -exec zipinfo -1 {} \; | grep '.bsp' | sed 's/^\(maps\/\)*//' | sed -e 's/\(.bsp\)*$//g'
@Kr3m
Kr3m / playercount.sh
Created October 3, 2021 14:15
Retrieve total number of Steam players currently playing a game.
#Usage: ./playercount.sh "Warfork"
#!/bin/bash
appid=$(curl -s https://api.steampowered.com/ISteamApps/GetAppList/v0002/ | jq ".applist.apps[] | select(.name==\"$1\")" | jq '.appid')
curl -s https://api.steampowered.com/ISteamUserStats/GetNumberOfCurrentPlayers/v1/?appid="$appid" | jq '.response.player_count'
@Kr3m
Kr3m / addons.bat
Created September 26, 2021 06:02
Join Left 4 Dead 2 custom campaigns from console or website link without having to wait for workshop addons to load.
:: Store in addons folder and run from an elevated command prompt.
@ECHO OFF
for /f "delims==" %%k in ('dir ".\workshop\*" /s /b') do (mklink ".\%%~nxk" "%%~k")
@Kr3m
Kr3m / check.sh
Last active March 26, 2023 20:36
Restart LinuxGSM based Left 4 Dead 2 server that is both empty and not running the default map.
#!/bin/bash
#depends on gamedig being installed globally
#place in /home/l4d2server (can probably work with other LGSM servers with minor modifications).
gameserver="l4d2server"
game="left4dead2"
config_path="./lgsm/config-lgsm/$gameserver/"
server="1.1.1.1" #change to server ip
for i in $(find . -maxdepth 1 -name "$gameserver*" | sed 's|^./||'); do
defaultmap=$(grep -P '^(?=[\s]*+[^#])[^#]*(defaultmap)' $config_path$i.cfg | awk -F\" '{print $2}')
port=$(grep -P '^(?=[\s]*+[^#])[^#]*(port)' $config_path$i.cfg | grep -v 'client' | awk -F\" '{print $2}')