Skip to content

Instantly share code, notes, and snippets.

View vegardsjo's full-sized avatar
😼

Vegard Sjonfjell vegardsjo

😼
View GitHub Profile
@christoph-frick
christoph-frick / Awesome-Fennel.md
Last active August 27, 2025 00:26
Use fennel to write the awesome-wm config

How to write an awesome-wm config with Fennel

Awesome-WM is a X11 window manager, that is configured via Lua. Fennel is a Lisp for Lua. This shows a general setup of how to write your awesome-wm config using fennel directly without the compilation step (which would also work, but is not needed).

General setup

Fetch a recent Fennel version (the

@slazav
slazav / convert_shape.py
Last active June 9, 2024 16:57
Convert OpenSCAD files to STEP or IGES using FreeCAD python library
#!/usr/bin/python
# path to FreeCAD.so
FREECADPATH = '/usr/lib64/freecad/lib'
import sys
sys.path.append(FREECADPATH)
if len(sys.argv)<3:
print "Usage: sys.argv[0] <in_file> <out_file>"
sys.exit(1)
@kevinlekiller
kevinlekiller / apply_patch.sh
Last active May 31, 2018 21:30
Reduces the POP noise when switching outputs on the Asus Xonar Essence STX (ST also probably). Linux Kernel Patch.
#!/bin/bash
MAKE_FLAGS="-j8"
<<About
This script compiles the snd_oxygen_lib/snd_oxygen/snd_virtuoso modules with the patch in this gist and installs them.
You will need to rerun this every time you use a new kernel.
Tested on Arch Linux (Kernel 4.4).
Copyright (C) 2016 kevinlekiller
@josefnpat
josefnpat / readme.md
Last active March 25, 2026 21:05
Going from Lua 5.2 to PICO-8's Lua

This information applies to the PICO-8 0.1.6 release.

This document is here to help folks with a proficiency in Lua understand the limitations and discrepencies between Lua and PICO-8's Lua.

You can always view the manual or yellowafterlife's extended 0.1.1 manual.

General

  • anything written in uppercase the PICO-8 editor or .p8 is made lowercase by the editor. → editing the .p8 file directly can work
  • print(function() end) outputs the string function instead of the string function: 0x0000000.