Skip to content

Instantly share code, notes, and snippets.

@pengi
pengi / .zshrc
Last active June 7, 2023 19:13
.zshrc
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="dpoggi"
plugins=(git)
source $ZSH/oh-my-zsh.sh
unset RPS1
zstyle ':completion:' special-dirs true
set enable-bracketed-paste off
@pengi
pengi / !README.md
Last active April 14, 2023 14:40
Setting up gdb-multiarch + arm-gdb for automatic handling of pyocd
@pengi
pengi / sort_undertale_ini.py
Last active March 25, 2023 18:28
Sorter for undertale.ini
# Sorts undertale.ini, to make cleaner diffs when tracking the undertale saves
# in git.
#
# UNdertale keeps parts between saves, so it's not possible to fully go back in
# time with internal save states, so keeping the saves in git is helpful to be
# able to re-experiance parts of the game.
#
# Since undertale reorders undertale.ini regulary, sorting the file before commit
# makes cleaner diffs.
#

Dynamic modules in C

Create modules as C files, and list those in another method, using ld scripts.

Compile

without object files

gcc -o out mod_a.c mod_b.c main.c modules.ld