Skip to content

Instantly share code, notes, and snippets.

View FabulousCodingFox's full-sized avatar

Fabian Fuchs FabulousCodingFox

View GitHub Profile
@lukebfox
lukebfox / hetzner-AX41-NVMe-bootstrap.sh
Last active July 20, 2024 12:23
Instructions to bootstrap nixos with root zfs on hetzner dedicated AX41-NVMe server
#!/usr/bin/env bash
set -eo pipefail
################################################################################
## Setup Helpers
################################################################################
export COLOR_RESET="\033[0m"
@Chase-san
Chase-san / decode.py
Created September 5, 2021 21:25
A python script to decode the hello games no man's sky save files. (The newer compressed kind)
#!/usr/bin/python3
import io
import os
import lz4.block
from glob import glob
FILE_PATH = os.path.dirname(os.path.realpath(__file__))
def uint32(data):
"""Convert 4 bytes to a little endian unsigned integer."""
@aras-p
aras-p / preprocessor_fun.h
Last active December 5, 2025 05:33
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,