Skip to content

Instantly share code, notes, and snippets.

View Jobians's full-sized avatar
🎯
Focusing

JOBIANS TECHIE Jobians

🎯
Focusing
View GitHub Profile
@Jobians
Jobians / install-deno-bun-termux.md
Created March 22, 2025 19:18
Installing Deno.js and Bun.js in Termux (Proot Ubuntu)

This guide covers installing Deno.js and Bun.js in Termux using proot Ubuntu.

1. Install Termux and Proot Ubuntu

First, update Termux and install Ubuntu using proot-distro:

pkg update && pkg upgrade -y
pkg install proot-distro -y
proot-distro install ubuntu
proot-distro login ubuntu
@Jobians
Jobians / solution.md
Created May 11, 2025 23:34
Fix for xtensa-esp32-elf-g++: not found on ARM64 Linux with PlatformIO | PackageException: Could not install package 'espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5' for 'linux_aarch64' system

Problem:

While building ESP32 projects on ARM64 (e.g., Raspberry Pi, Termux), PlatformIO shows this error:

xtensa-esp32-elf-g++: not found [Error 127]

Solution:

1. Download ARM64 toolchain:

const crypto = require('crypto');
const {
TextDecoder
} = require('util');
// Static Key and IV (from client JS)
const base64IV = "Wzk3LCAxMDksIC0xMDAsIC05MCwgMTIyLCAtMTI0LCAxMSwgLTY5LCAtNDIsIDExNSwgLTU4LCAtNjcsIDQzLCAtNzUsIDMxLCA3NF0=";
const base64Key = "Wy0zLCAtMTEyLCAxNSwgLTEyNCwgLTcxLCAzMywgLTg0LCAxMDksIDU3LCAtMTI3LCAxMDcsIC00NiwgMTIyLCA0OCwgODIsIC0xMjYsIDQ3LCA3NiwgLTEyNywgNjUsIDc1LCAxMTMsIC0xMjEsIDg5LCAtNzEsIDUwLCAtODMsIDg2LCA5MiwgLTQ2LCA0OSwgNTZd";
function parseKey(base64Str) {

🛠️ Android Emulator Crash FIX — StartService FAILED with error 4294967201

❗ Problem

When launching the Android Emulator, I kept getting this vague and frustrating error:

Running Android Emulator hypervisor driver installer
[SC] StartService FAILED with error 4294967201
The emulator process for AVD  has terminated.
@Jobians
Jobians / adrinolinks.com.js
Created August 11, 2025 06:32
adrinolinks.com | adrinolinks.in link bypass
#!/bin/bash
# Configure GRUB for serial console in Debian (Termux-friendly)
GRUB_FILE="/etc/default/grub"
BACKUP_FILE="/etc/default/grub.bak.$(date +%F-%T)"
echo "🔹 Backing up current GRUB config to $BACKUP_FILE"
sudo cp "$GRUB_FILE" "$BACKUP_FILE"
echo "🔹 Configuring GRUB for serial console..."
@Jobians
Jobians / qemu-termux-benchmark-summary.md
Created October 31, 2025 10:33
QEMU ARM64 vs x86_64 performance benchmarks on Termux (Android ARM64)

🧩 QEMU Performance Comparison Summary

Host: Termux on Android (ARM64 / aarch64)
Device: Android phone running Termux
Virtualization: QEMU emulation (no KVM acceleration)

🖥️ Virtual Machines Compared

VM QEMU Command Architecture Notes
🟢 ARM64 Guest qemu-system-aarch64 ARM64 on ARM64 Native architecture, efficient
🔴 x86_64 Guest qemu-system-x86_64 x86 emulated on ARM Heavy software emulation via TCG
@Jobians
Jobians / vite-react-next-themes-darkmode-fix.md
Last active January 31, 2026 00:36
Fix next-themes Flash in Vite React (Dark Mode)

Vite React next-themes Dark Mode Fix

Minimal <head> snippet to prevent the flash of white background (FOUC) in Vite React SPAs using next-themes (chakra ui).

<head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>App</title>
@Jobians
Jobians / solution.md
Created April 17, 2026 16:57
Fix QEMU Debian No Internet (ens3 DOWN / DHCP issue)

Here’s a simple GitHub Gist version you can paste directly:

Fix QEMU Debian No Internet

Problem

No internet in Debian VM:

  • ping fails
  • DNS not working
  • ens3 is DOWN

Bundling proot (or any Termux binary) inside an Android app

This is a recipe for taking a binary/library built for Termux and getting it running inside your own Android app via ProcessBuilder, without root.

Why this works

Termux builds its packages against Bionic libc using the Android NDK, so the resulting binaries are already ABI-compatible with plain Android apps. The trick is just:

  1. Getting the files into a location Android will grant execute permission on.