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 September 2, 2024 13:42
Fedora on WSL2
# 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
# install https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
> wsl --set-default-version 2
@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;