Skip to content

Instantly share code, notes, and snippets.

View jdonszelmann's full-sized avatar
💖
💖

Jana Dönszelmann jdonszelmann

💖
💖
View GitHub Profile
@jdonszelmann
jdonszelmann / Makefile
Last active October 29, 2019 10:26
General makefile for any c/asm project
executable_name = yeet
version = 0.0.1
arch ?= x86_64
LINKER = gcc
CC = gcc
CPP = g++
ASM = gcc
NASM = nasm
@jdonszelmann
jdonszelmann / dumpasm
Last active October 7, 2019 06:55
compile semicolon seperated assembly instructions and hexdump
#!/usr/bin/bash
if [ -p /dev/stdin ]; then
stdinput=`cat`
else
stdinput=""
fi
params="${@}"
@jdonszelmann
jdonszelmann / pipe.py
Created September 22, 2024 16:54
Pipes in Python
class Wrapper:
def __init__(self, old):
self._old = old
def __getattribute__(self, attr):
if attr == "__call__":
return object.__getattribute__(self, attr)
elif attr == "__or__":