This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 $@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import locale | |
import math | |
import struct | |
import subprocess | |
import sys | |
import textwrap | |
from fractions import Fraction |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |