Skip to content

Instantly share code, notes, and snippets.

View Benjamin-Wegener's full-sized avatar
💭
I may be slow to respond.

Benjamin Wegener Benjamin-Wegener

💭
I may be slow to respond.
View GitHub Profile
@Benjamin-Wegener
Benjamin-Wegener / bitnet_android_server.sh
Last active April 29, 2025 12:12
playstore -> userland -> debian ssh -> bash -c 'wget --no-check-certificate "https://gist.github.com/Benjamin-Wegener/e63ac96a316e3f0f3ec9abad16ce8dc5/raw/ea9055defb5b491a5cd7cdb76bf3e5d88f8515d5/bitnet_android_server.sh" -O bitnet_android_server.sh && chmod +x bitnet_android_server.sh && bash bitnet_android_server.sh'
#!/bin/bash
#
# Script to set up BitNet environment.
#
# This script performs the following steps:
# 1. Updates the system's package list.
# 2. Installs necessary dependencies (lsb-release, wget, software-properties-common, gnupg, git, clang, cmake).
# 3. Adds the LLVM repository and installs LLVM.
# 4. Downloads and installs Miniconda with Python 3.9 based on system architecture.
# 5. Makes the conda binaries executable.
@Benjamin-Wegener
Benjamin-Wegener / tether.rc
Created January 6, 2024 19:21
Android Tethering Fixed IP - Load this via root shell before enabling thethering > android 9
#!/bin/sh
/system/bin/ip addr add 192.168.1.1/24 dev dummy0
/system/bin/ip addr add 192.168.2.1/24 dev dummy0
/system/bin/ip addr add 192.168.3.1/24 dev dummy0
/system/bin/ip addr add 192.168.4.1/24 dev dummy0
/system/bin/ip addr add 192.168.5.1/24 dev dummy0
/system/bin/ip addr add 192.168.6.1/24 dev dummy0
/system/bin/ip addr add 192.168.7.1/24 dev dummy0
/system/bin/ip addr add 192.168.8.1/24 dev dummy0
/system/bin/ip addr add 192.168.9.1/24 dev dummy0