This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// compile me: g++ -shared -fPIC -ldl -o monkeypatchor.so monkeypatchor.cpp | |
// use me: LD_PRELOAD=`pwd`/monkeypatchor.so /bin/ls | |
#include <dlfcn.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/mman.h> | |
void* (*malloc_super)(size_t); | |
void (*free_super)(void*); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
###### Options ###### | |
MINETESTDIR=/home/username/minetest | |
GAMENAME=minetest_game | |
WORLDDIR=none | |
MEDIADIR=./media | |
LEGACY_SYMLINKS=0 | |
# When settings this up be aware that the Minetest client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
r"""vimanim - make animated GIFs out of vim commands! | |
Usage: | |
vimanim <code> <output.gif> [<input>] [options] | |
<code> should contain the exact bytes to feed to vim. | |
This means: raw newlines for <Enter>, raw \x1b bytes for <Esc>, etc. | |
Some UTF-8 codepoints have special meaning, though: |