Skip to content

Instantly share code, notes, and snippets.

View Thesola10's full-sized avatar
✈️
look to the skies

Karim Vergnes Thesola10

✈️
look to the skies
View GitHub Profile
@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 <[email protected]>
# 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()
@Thesola10
Thesola10 / make.sh
Last active January 31, 2022 10:13
sudo make me a sandwich
#!/bin/bash
# make-sandwich by Karim Vergnes <[email protected]>
# 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 / chroma.sh
Last active January 31, 2022 10:12
(in)elegant weapons, for a more civilized age.
#!/bin/bash
# chroma by Karim Vergnes <[email protected]>
# 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 / webroulette.sh
Last active January 31, 2022 10:12
(in)elegant weapons, for a more civilized age.
#!/bin/bash
# WebRoulette by Karim Vergnes <[email protected]>
# 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 / 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 <[email protected]>
# 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 / nix your reality.txt
Last active December 29, 2024 02:25
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 / 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 / chasm.patch
Last active November 25, 2022 21:31
Patch to build a Flatpak from Escaped Chasm game folder
diff --color -ruN Escaped_Chasm/io.itch.tuyoki.EscapedChasm.yaml Escaped_Chasm_New/io.itch.tuyoki.EscapedChasm.yaml
--- Escaped_Chasm/io.itch.tuyoki.EscapedChasm.yaml 1970-01-01 01:00:00.000000000 +0100
+++ Escaped_Chasm_New/io.itch.tuyoki.EscapedChasm.yaml 2020-08-07 18:58:58.059750271 +0200
@@ -0,0 +1,47 @@
+app-id: "io.itch.tuyoki.EscapedChasm"
+runtime: org.freedesktop.Platform
+runtime-version: '19.08'
+sdk: org.freedesktop.Sdk
+command: "/app/bin/EscapedChasm"
+
@Thesola10
Thesola10 / pixbat.py
Last active January 26, 2022 07:10
Wrapper around bat and pixcat to display images in the bat command
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This script is designed to be installed in ~/.local/bin/bat or equivalent
from os import execvp
import sys
import subprocess
if __name__ == "__main__":
try:
@Thesola10
Thesola10 / duckduckgo.user.css
Last active April 3, 2024 14:01
Replaces the default DuckDuckGo icon with Virtual Youtuber Oozora Subaru from Hololive.
/* ==UserStyle==
@name DuckDuckGo Oozora Subaru Edition
@namespace thesola10
@version 1.0.0
@license MIT
@updateURL https://gist.githubusercontent.com/Thesola10/a7cbfd9cc7c7b8a697a0c08472d06b98/raw/duckduckgo.user.css
@author thesola10
==/UserStyle== */
@-moz-document domain("duckduckgo.com") {