Skip to content

Instantly share code, notes, and snippets.

@anthonyprintup
anthonyprintup / exit_codes.py
Last active September 15, 2022 08:01
Script for managing a matrix-synapse server
from __future__ import annotations
from enum import IntEnum, auto as _enum_auto
# noinspection PyArgumentList
class ExitCode(IntEnum):
# No errors occurred
SUCCESS: ExitCode = 0
# Certificate related errors
@anthonyprintup
anthonyprintup / event.hpp
Created October 19, 2022 10:26
Event listener (signals) implementation.
#pragma once
namespace events {
struct Event {};
}
@anthonyprintup
anthonyprintup / ida.hpp
Created September 12, 2023 14:26
A compile-time byte pattern matcher designed to match IDA patterns.
// Created by Anthony Printup on 4/21/2023.
#pragma once
#include <algorithm>
#include <bitset>
#include <cstdint>
#include <exception>
#include <functional>
#include <ranges>