Skip to content

Instantly share code, notes, and snippets.

View thetredev's full-sized avatar

Timo Reichl thetredev

  • Germany
  • 08:30 (UTC +01:00)
View GitHub Profile
@kmatt
kmatt / void-wsl.txt
Last active October 26, 2026 21:51
Install Void Linux on WSL2
# Based on https://gist.github.com/kmatt/71603170556ef8ffd14984af77ff10c5
# prompt ">" indicates Powershell commands
# prompt "$" are Linux shell commands
# The Powershell commands to install WSL on Windows 11 may no longer be necessary in 2026+
# https://github.com/microsoft/WSL/releases
> dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
> dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
@tylerneylon
tylerneylon / json.lua
Last active May 14, 2026 17:36
Pure Lua json library.
--[[ json.lua
A compact pure-Lua JSON library.
The main functions are: json.stringify, json.parse.
## json.stringify:
This expects the following to be true of any tables being encoded:
* They only have string or number keys. Number keys must be represented as
strings in json; this is part of the json spec.