Skip to content

Instantly share code, notes, and snippets.

@ggemre
ggemre / cubyz-flake.nix
Created October 11, 2025 08:18
Nix flake for building cubyz, (https://github.com/PixelGuys/Cubyz), an open source 3D voxel sandbox game.
# A nix flake for building cubyz, (https://github.com/PixelGuys/Cubyz),
# an open source 3D voxel sandbox game.
# SERIOUS LIMITATION: cubyz uses their own custom patched zig compiler ୧(๑•̀ᗝ•́)૭
# to build, you will need to do nix build --option sandbox false.
# This is because the custom zig compiler looks for dynamically linked libraries
# in an FHS environment. There are ways around this but I'm too lazy to solve for now.
# IMPORTANT NOTE: use `zon2nix` to generate a local deps.nix file with dependencies.
# It may contain local files that don't exist on your computer, so just delete that
# that dependency from the zon file.
{
@ggemre
ggemre / tsnode2tsx.md
Last active February 27, 2025 15:06
Migrating from ts-node to tsx
@ggemre
ggemre / fflags.md
Created November 1, 2023 15:48
Feature Flag Investigation

Using feature flags for persons/bdp updates

As an alternative to branching, switching applications over to use persons v4 and BDPs can be cleanly cut over via feature flags:

Possible implementations

1. environment variables

Services being called are conditionally controlled with environment variables. Switching flags is as easy as updating a variable but requires a redeployment.