This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() |