Skip to content

Instantly share code, notes, and snippets.

View omry's full-sized avatar

Omry Yadan omry

View GitHub Profile
// Compile with:
// g++ -c -fpic -o hack.o hack.cpp && g++ -shared -o libhack.so hack.o
// Then load with the Python
// import ctypes; ctypes.CDLL('libhack.so')
#include <stdio.h>
#include <dlfcn.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/mman.h>
@omry
omry / goodconf_README.md
Created September 2, 2018 22:49
goodconf

goodconf

Goodconf is a yaml based configuration library, supporting dot access, deep updates and more.

Loading from a string:

    s = 'hello: world'
    c = Config.from_string(s)
    assert c.hello == 'world'
    assert c == {'hello': 'world'}