Skip to content

Instantly share code, notes, and snippets.

View Thesola10's full-sized avatar
🐢
slow day

Karim Vergnes Thesola10

🐢
slow day
View GitHub Profile
@Thesola10
Thesola10 / dweller.patch
Last active November 25, 2022 21:30
Patch to build a Flatpak from Dweller's Empty Path game folder
diff --color -ruN "Dwellers Empty Path/io.itch.tuyoki.DwellersEmptyPath.yaml" DwellerNew/io.itch.tuyoki.DwellersEmptyPath.yaml
--- "Dwellers Empty Path/io.itch.tuyoki.DwellersEmptyPath.yaml" 1970-01-01 01:00:00.000000000 +0100
+++ DwellerNew/io.itch.tuyoki.DwellersEmptyPath.yaml 2020-08-08 21:08:21.619488035 +0200
@@ -0,0 +1,47 @@
+app-id: "io.itch.tuyoki.DwellersEmptyPath"
+runtime: org.freedesktop.Platform
+runtime-version: '19.08'
+sdk: org.freedesktop.Sdk
+command: "/app/bin/Dweller"
+
@Thesola10
Thesola10 / nix your reality.txt
Last active February 20, 2024 14:52
Sung to the tune of "Your Reality" from Doki Doki Literature Club
Every day, I imagine a future where I can be with you.
In my hand, is a pen that'll write derivations of me and you.
The bytes flow down into a hash table
Just move your PATH, link the way into this art.
But in this world of indefinite builds,
What will it take just to find stability?
What will it take just to find... that special day?
Have I found every package a derivation that works today?
@Thesola10
Thesola10 / key-gnat.py
Last active January 31, 2022 10:11
(in)elegant weapons, for a more civilized age.
#!/usr/bin/env python3
# key-gnat by Karim Vergnes <me@thesola.io>
# License: WTFPL 1.0
# Requires evdev python to be installed
from evdev import UInput, ecodes as e
import random, time
ui = UInput(name="Unsuspicious keyboard™")
@Thesola10
Thesola10 / webroulette.sh
Last active January 31, 2022 10:12
(in)elegant weapons, for a more civilized age.
#!/bin/bash
# WebRoulette by Karim Vergnes <me@thesola.io>
# License: WTFPL 1.0
# Requires xdg-open and a web browser to work.
# Location of the sitefile
: ${LIST:="$HOME/.sitefile"}
# Time interval for sleep
: ${SLEEP_INT:="20-300"}
@Thesola10
Thesola10 / chroma.sh
Last active January 31, 2022 10:12
(in)elegant weapons, for a more civilized age.
#!/bin/bash
# chroma by Karim Vergnes <me@thesola.io>
# License: WTFPL 1.0
# Requires xrandr to work.
# Display to modify
: ${XRDISP:="eDP1"}
# Speed at which to alternate colors
: ${COEF:=1}
# Intensity of result
@Thesola10
Thesola10 / make.sh
Last active January 31, 2022 10:13
sudo make me a sandwich
#!/bin/bash
# make-sandwich by Karim Vergnes <me@thesola.io>
# XKCD/149-compliant wrapper for Make
# License: WTFPL 1.0
# Requires make to work. To install, place in /usr/local/bin/
if ! which /usr/bin/make > /dev/null 2>&1
then
echo "make is not installed. See your distribution's info to install it."
exit 3
@Thesola10
Thesola10 / potdefleurs.py
Last active January 31, 2022 10:13
bidule orienté objet
#!/usr/bin/env python3
# Un pot de fleurs pour apprendre à coder :)
# © Karim Vergnes <me@thesola.io>
# Sous licence Creative Commons Attribution, NonCommercial, ShareAlike (CC BY,NC,SA)
# https://creativecommons.org/licenses/by-nc-sa/3.0/fr/
class Potdefleur:
couleur = str()
fleurs = list()