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 / 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 / sprinkle.py
Created December 1, 2022 10:53
random data at random places
#!/usr/bin/env python3
"""Sprinkle - Write random data at random places
Usage:
sprinkle.py <file> [--size=<size>] [--safe-start=<start>] [--safe-end=<end>] [--once]
Options:
-h --help Show this message and exit.
--version Show version.
@Thesola10
Thesola10 / bwrap-nix.sh
Last active June 4, 2023 20:22
It's Nix in a Box!
#!/bin/sh
# bwrap-nix (c) Karim Vergnes <me@thesola.io>
# It's Nix in a Box! (useful for an unprivileged Nix environment)
if [[ $# < 2 ]]
then
>&2 echo "usage: $0 <nix directory> <command> [args]..."
exit 1
fi
@Thesola10
Thesola10 / nixos-spawn.sh
Last active October 21, 2023 09:16
Build and spin up a NixOS configuration or flake as a systemd-nspawn container on non-NixOS systems.
#!/bin/sh
# nixos-spawn (c) Karim Vergnes <me@thesola.io>
# This script launches systemd-nspawn in an empty root, with an overlay of the
# host's Nix Store. This takes advantage of the NixOS stage 2 init's ability to
# populate an empty system automatically.
# By default, no changes are persisted anywhere -- use an additional bind mount
# to add permanent storage.
: ${NIXOS_CHANNEL:=nixpkgs}
@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 / 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") {