Skip to content

Instantly share code, notes, and snippets.

View JacobTDC's full-sized avatar

Jacob Story JacobTDC

  • 20:52 (UTC -05:00)
View GitHub Profile
@JacobTDC
JacobTDC / HelloWorld.asm
Created February 19, 2024 21:28
A "Hello World" program for LBPHacker's R216K2A computer in The Powder Toy
LC0:
dw 0x200F, "Hello world!", 0 ; save a string for later
start:
mov sp, 0 ; zero put sp (whatever that means, I just include it because LBPHacker does it in all of his scripts)
mov r10, 0 ; save the terminal port as 0
bump r10 ; reset the terminal
jmp main ; jump to the main script
@JacobTDC
JacobTDC / converter.py
Last active March 3, 2024 21:11
Flipper Zero Video Converter
#!/usr/bin/env python3
import argparse
import locale
import math
import struct
import subprocess
import sys
import textwrap
from fractions import Fraction
@JacobTDC
JacobTDC / libdisable-tagged-pointer.c
Created May 9, 2022 02:53
Fix for openjdk to disable tagged pointers in Termux on Android 12+
// C code to disable tagged pointers in Termux.
// Compile and add the path to LD_PRELOAD.
// See https://github.com/termux/termux-packages/issues/7332#issuecomment-1078588433
// for more info.
#include <android/log.h>
void __attribute__((constructor)) disable_tagged_pointer_hook() {
#ifndef __ANDROID_SDK__
__android_log_print(ANDROID_LOG_INFO, "DEBUG", "undefined __ANDROID_SDK__");
#elif __ANDROID_SDK__ >= 31 // ANDROID 12