Skip to content

Instantly share code, notes, and snippets.

# IDA (disassembler) and Hex-Rays (decompiler) plugin for Apple AMX
#
# WIP research. (This was edited to add more info after someone posted it to
# Hacker News. Click "Revisions" to see full changes.)
#
# Copyright (c) 2020 dougallj
# Based on Python port of VMX intrinsics plugin:
# Copyright (c) 2019 w4kfu - Synacktiv
@jix
jix / resolve_tco_links.user.js
Last active July 16, 2024 02:01
User script to resolve t.co links on twitter
@cq674350529
cq674350529 / find_ecos_load_addr.py
Last active February 20, 2025 12:00
locate base addr by finding fixed xref addrs
#!/usr/bin/env python
import os
import sys
import binascii
import struct
import random
import string
import re
import inspect
@pervognsen
pervognsen / shift_dfa.md
Last active April 21, 2025 19:59
Shift-based DFAs

A traditional table-based DFA implementation looks like this:

uint8_t table[NUM_STATES][256]

uint8_t run(const uint8_t *start, const uint8_t *end, uint8_t state) {
    for (const uint8_t *s = start; s != end; s++)
        state = table[state][*s];
    return state;
}
@imneonizer
imneonizer / how-to-download-from-pan-baidu.md
Last active May 5, 2025 20:03
How to download from pan.baidu without account