Skip to content

Instantly share code, notes, and snippets.

View jacnils's full-sized avatar
🇸🇪

Jacob Nilsson jacnils

🇸🇪
View GitHub Profile
@jacnils
jacnils / patches.h
Created September 26, 2025 15:04
patches.h
/*
* This file contains patch control flags.
*
* In principle you should be able to mix and match any patches
* you may want. In cases where patches are logically incompatible
* one patch may take precedence over the other as noted in the
* relevant descriptions.
*
* Although layouts typically come as patches they are differentiated
* here for grouping purposes.
@jacnils
jacnils / jacob-author-only.md
Created June 8, 2025 01:22
Very restrictive license.

jacob-author-only license

Authors and copyright holders:

Definitions:

  • "Software" refers to the software, including all source code, binaries, documentation and other files that are part of the software.
  • "Author" refers to the author of the software, the persons or entities that holds the copyright to the software.
  • "License" refers to this license agreement.
# majorna.py
# ---------
# This is the default configuration file for Majorna.
# It should be placed in ~/.config/majorna/ as majorna.py.
# If it isn't being loaded on startup, ensure Python is installed as it is not a hard dependency for Majorna.
from libmajorna import settings
from libmajorna.settings import *
from libmajorna import core
# This is a Settings object with all the default options specified.
@jacnils
jacnils / .zprofile
Created April 23, 2025 18:32
zprofile
export XDG_RUNTIME_DIR=/run/user/$(id -u)
export EDITOR=nvim
export PS1="%F{red}$(whoami)%F{white}@%F{blue}$(cat /etc/hostname) %F{blue}%~ %(?.%F{green}.%F{red})%#%f "
@jacnils
jacnils / wad-extract.cpp
Created February 21, 2025 20:32
Extract Wii WADs
// wad-tools
// Licensed under the terms of the GNU GPL, version 2
// http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
// Based on BFGR WadTools v0.39a by BFGR based on Zeventig by Segher
// Refactored Feb 20 2025 by Jacob Nilsson (no longer depends on Segher's Wii tools)
//
// build: g++ -std=c++20 wad-extract.cpp -o wad-extract -lcrypto
#include <iostream>
#include <sys/types.h>