Skip to content

Instantly share code, notes, and snippets.

View JacobTDC's full-sized avatar

Jacob Story JacobTDC

  • 09:07 (UTC -05:00)
View GitHub Profile
@JacobTDC
JacobTDC / VSCode.sh
Last active October 16, 2024 19:09
A script to install and run VS Code on Termux
#!/data/data/com.termux/files/usr/bin/bash
if ! dpkg -s nodejs-lts > /dev/null 2>&1; then
echo code-server requires nodejs-lts.
exit 1
fi
export NODE_OPTIONS="--require android-as-linux.js"
export VSCODE_APPDATA="$HOME/.local/share"
exec npm exec -- code-server@latest $@
@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 April 4, 2025 22:28
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