Skip to content

Instantly share code, notes, and snippets.

@lizard-demon
lizard-demon / main.zig
Created July 8, 2026 09:59
Zig 0.16.0 file downloader demo
const std = @import("std");
const Io = std.Io;
pub fn main(init: std.process.Init) !u8 {
const alloc = init.arena.allocator();
const args = try init.minimal.args.toSlice(alloc);
if (args.len < 2 or args.len > 3) return 2;
const u = try std.Uri.parse(args[1]);
@lizard-demon
lizard-demon / lua_build_macos.sh
Created June 21, 2025 23:16 — forked from zirkuswurstikus/lua_build_macos.sh
A step by step guide on how to install lua, luajit and luarocks from sources on macOS.
# Build & install Lua on macOS
# We will compile Lua 5.1 because it is compatible with openresty/lapis.
# Replace the variables from line 30 ff to install a diffrent version.
# See: https://www.lua.org/manual/5.1/
# NOTE:
# We create a dedicated directory for the Lua stuff to putt all the stuff in.