Skip to content

Instantly share code, notes, and snippets.

View thisisignitedoreo's full-sized avatar

acid thisisignitedoreo

View GitHub Profile
@thisisignitedoreo
thisisignitedoreo / 100-limine
Last active December 27, 2025 22:22
Limine Void Linux (and probably others) config generator script
#!/bin/sh
#
# Kernel post-install hook for Limine configuration.
#
# Arguments passed to this script: $1 pkgname, $2 version.
#
PKGNAME="$1"
VERSION="$2"
if [ ! -x usr/local/bin/gen-limine ]; then
@thisisignitedoreo
thisisignitedoreo / time.py
Created April 28, 2024 21:22
little game timer program
#!/bin/env python3
# for timing for how long you have been playing some game.
# $ time.py add game-slug
# $ time.py time game-slug
# and woa-la!
import discordrpc as rpc
import subprocess
import json
@thisisignitedoreo
thisisignitedoreo / main.py
Created April 28, 2024 21:19
twitch vod downloading and splitting tool, also with chat downloading abilities.
#!/bin/env python3
# note: you will need TwitchDownloaderCLI for it to work.
# also note: dont expect me to change stuff here, i made it fully for myself
# and throwing it here for sharing sake, and code is messy. happy using!
import subprocess
import datetime
import requests
import shutil
@thisisignitedoreo
thisisignitedoreo / main.py
Created September 21, 2022 13:43
PyGame boilerplate code
import pygame as pg
class Program:
def __init__(self, res=None, fps=60, title=None):
pg.init()
self.res = self.width, self.height = res if not res is None else [800, 600] # If resolution is not set then 800x600
self.center = self.center_width, self.center_height = (res[0] // 2, res[1] // 2) if not res is None else [400, 300] # Same, but divided by 2
self.fps = fps
self.screen = pg.display.set_mode(self.res)
self.clock = pg.time.Clock()