Skip to content

Instantly share code, notes, and snippets.

View ordinary-hacker's full-sized avatar

ordinary-hacker

View GitHub Profile
wampp:xampp
webdav:webdav
jigsaw:jigsaw
@rene-d
rene-d / colors.py
Last active December 14, 2025 23:47
ANSI color codes in Python
# SGR color constants
# rene-d 2018
class Colors:
""" ANSI color codes """
BLACK = "\033[0;30m"
RED = "\033[0;31m"
GREEN = "\033[0;32m"
BROWN = "\033[0;33m"
BLUE = "\033[0;34m"
@justinian
justinian / linux-x64-nasm-cheatsheet.md
Last active November 24, 2025 12:40
x64 NASM Cheat Sheet

x64 NASM cheat sheet

Registers

64 bit 32 bit 16 bit 8 bit
A (accumulator) RAX EAX AX AL
B (base, addressing) RBX EBX BX BL
C (counter, iterations) RCX ECX CX CL
D (data) RDX EDX DX DL