Skip to content

Instantly share code, notes, and snippets.

View CypherpunkSamurai's full-sized avatar
😶
Currently Busy 🌻🐢

Cypherpunk Samurai CypherpunkSamurai

😶
Currently Busy 🌻🐢
View GitHub Profile
@CypherpunkSamurai
CypherpunkSamurai / reverse-tether.sh
Created April 11, 2025 11:52 — forked from ncouture/reverse-tether.sh
Android reverse tethering over bridged SSH tap interface
#!/bin/bash
# Based on the scripts written by class101 of xda-developers.com:
# http://forum.xda-developers.com/showpost.php?p=57490025&postcount=205
#
# This script enables a secure tunnel for your android phone to "reverse tether"
# and access the internet/a private network via the following steps:
#
# 1. Establish a level 3 (TAP) tunnel from your local host to a remote server via SSH (tap0)
# 2. Establish a level 3 interface between your local host and your android phone via USB (usb0)
@CypherpunkSamurai
CypherpunkSamurai / RSS.md
Created April 11, 2025 10:50 — forked from thefranke/RSS.md
A list of RSS endpoints, readers and resources

The RSS Endpoint List

Please refer to this blogpost to get an overview.

Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.

Social Media

Twitter

@CypherpunkSamurai
CypherpunkSamurai / termux-ssh-server.sh
Last active April 10, 2025 06:58
Termux Easy SSH Server with SFTP
#!/data/data/com.termux/files/usr/bin/bash
# Update package list
pkg update -y
# Install OpenSSH, SFTP server, net-tools, and termux-tools
pkg install -y openssh openssh-sftp-server net-tools termux-tools
# Configure SSH server
cat > $PREFIX/etc/ssh/sshd_config << 'EOL'
@CypherpunkSamurai
CypherpunkSamurai / enable usb tethering from adb shell.txt
Created April 10, 2025 06:31
enable usb tethering from adb shell
adb shell am start -n com.android.settings/.TetherSettings && adb shell input keyevent 20 && adb shell input keyevent 20 && adb shell input keyevent KEYCODE_ENTER && sleep 2 && adb shell input keyevent 4
@CypherpunkSamurai
CypherpunkSamurai / Ubuntu and Debian Live ISO Builder Code.md
Created April 8, 2025 08:33
Ubuntu and Debian Live ISO Builder Code

Ubuntu / Debian Live ISO Builder Code

  1. Elementary OS - https://github.com/elementary/os (The GOAT of ISO Building Codebase)
  2. Cinnamon - https://github.com/ubuntucinnamon/iso-builder-devel (Fork of ElementaryOS Builder)
  3. VanillaOS - https://github.com/Vanilla-OS/live-iso (Fork of Cinnamon Builder)
  4. Rhino OS - https://github.com/rhino-linux/os (Fork of VannillaOS Builder)
  5. UbuntuBudgie - https://github.com/UbuntuBudgie/iso-builder (Fork of ElementaryOS Builder)
  6. QuadScope - https://github.com/Quadscope/live-image (Easy to Read and Learn Code)

Notable Mentions

@CypherpunkSamurai
CypherpunkSamurai / debian_mirrorrank.ps1
Created April 7, 2025 07:45
Powershell Script to Rank Mirrors from the Debian Website on Windows
<#
.SYNOPSIS
Tests latency of Debian mirrors and sorts them by response time.
.DESCRIPTION
This script fetches the Debian mirrors list from the official Debian website,
extracts all mirror URLs, tests the latency of each mirror by sending HTTP requests,
and then displays them sorted by response time (fastest first).
.NOTES
#!/bin/bash
# Cleanup script for the custom Ubuntu ISO creator
# Run as root (sudo) if the main script fails
set -e
# set -o pipefail # Optional: might be too strict for cleanup
# Configuration variables (should match the main script)
WORK_DIR="/tmp/custom-ubuntu-iso"
#!/bin/bash
# Ubuntu ISO Creator Script
# This script creates a custom Ubuntu ISO with standard desktop components
# Run as root (sudo)
set -e
set -o pipefail
# Configuration variables
@CypherpunkSamurai
CypherpunkSamurai / spreadtrum_unisoc_vbmeta_dhtb_padding_finder.py
Last active April 2, 2025 16:43
Spreadtrum Unisoc VBMeta DHTB Padding Finder
#!/usr/bin/env python3
"""
DHTB Finder - Utility to find DHTB headers in binary files and extract information
Author: CypherpunkSamurai - github.com/CypherpunkSamurai
Email: [email protected]
credits: https://www.hovatek.com/forum/thread-32664-post-194145.html#pid194145
"""