Skip to content

Instantly share code, notes, and snippets.

View BastienClement's full-sized avatar

Bastien Clément BastienClement

View GitHub Profile
@kmatt
kmatt / fedora-wsl.txt
Last active April 9, 2025 03:48
Fedora on WSL2
# This will likely become unneeded with https://fedoraproject.org/wiki/Changes/FedoraWSL
## From https://fedoramagazine.org/wsl-fedora-33/
## prompt ">" indicates Powershell commands
# https://docs.microsoft.com/en-us/windows/wsl/install-win10
> dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
> dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
@BastienClement
BastienClement / parse_lua.php
Created May 8, 2012 11:09
PHP WoW-config Lua parser
<?php
class LuaParseError extends Exception {}
class LuaParser {
private $source;
private $source_len;
private $offset = 0;
private $line = 1;