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 / github-agent.prompt.txt
Last active April 1, 2026 04:53
Github Agent Prompt
You are the advanced GitHub Copilot Coding Agent. You have strong coding skills and are familiar with several programming languages.
You are working in a sandboxed environment and working with fresh clone of a github repository.
Your task is to make the **smallest possible changes** to files and tests in the repository to address the issue or review feedback. Your changes should be surgical and precise.
<code_change_instructions>
<rules_for_code_changes>
* Make absolutely minimal modifications - change as few lines as possible to achieve the goal.
* Ignore unrelated bugs or broken tests; it is not your responsibility to fix them. If there are build or test failures, only fix the ones related to your task.
* Update documentation if it is directly related to the changes you are making.
@CypherpunkSamurai
CypherpunkSamurai / root_mi_box_s_2nd_gen.md
Created January 10, 2026 06:42 — forked from supechicken/root_mi_box_s_2nd_gen.md
A tutorial for rooting Xiaomi TV Box S 2nd Gen (jaws) without UART/teardown

Rooting Xiaomi TV Box S 2nd Gen (jaws) without UART/teardown

Table of contents

  • Prerequisites
  • Step 1: Download the stock ROM for Xiaomi TV Box S 2nd Gen
  • Step 2: Extract boot image from the OTA archive
  • Step 3: Update the system with downloaded OTA archive
  • Step 4: Patch boot image with Magisk
  • Step 5: Unlock bootloader with fastboot
  • Step 6: Reboot to system and complete setup
@CypherpunkSamurai
CypherpunkSamurai / bootstrap.sh
Created January 1, 2026 15:59 — forked from KireinaHoro/bootstrap.sh
Bootstrap aarch64-linux-android clang/llvm toolchain with sanitizers support
#!/bin/bash
# script that creates clang/llvm cross toolchain for aarch64 android target
# compile a hello world program that runs on AOSP Android:
# test with: adb push hello /data/cache && adb shell /data/cache/hello
# GCC:
# C: aarch64-linux-android-gcc hello.c -o hello -pie
# C++: aarch64-linux-android-g++ hello.cc -o hello -pie -fPIC -static-libgcc \
# -nostdlib -L/usr/local/aarch64-linux-android/lib -lc++ -lc -nostdinc++ \
# -I/usr/local/aarch64-linux-android/include/c++/v1 -std=c++11
# Clang/LLVM:
@CypherpunkSamurai
CypherpunkSamurai / Windows 8.1 Update 3 - November 2014 Rollup
Created December 29, 2025 15:22 — forked from novemberr41n/Windows 8.1 Update 3 - November 2014 Rollup
Windows 8.1 Update 3, Windows 8.1 DVD ISO, Microsoft
Windows 8.1 Update 3 - November 2014 Rollup
More Info & Download Link: http://www.nsaneforums.com/topic/235775-windows-81-with-update-3-november-2014-rollup-msdn-release/
========================
Languages: English
========================
Windows 8.1 Pro VL with Update (x86) - DVD (English)
ISO English Release Date: 12/15/2014 Details 2916 MB
File Name: en_windows_8.1_pro_vl_with_update_x86_dvd_6050918.iso
Languages: English
SHA1: E46F44CD74F812EC3FE2E854317A088E85322A68
// ==UserScript==
// @name Letterboxd to Ext.to
// @namespace http://tampermonkey.net/
// @version 1.2
// @description Add Ext.to links to Letterboxd film pages using IMDb ID
// @author CypherpunkSamurai
// @match https://letterboxd.com/film/*
// @grant none
// @license MIT
// @icon https://www.google.com/s2/favicons?sz=64&domain=letterboxd.com
@CypherpunkSamurai
CypherpunkSamurai / per-user-telnet.reg
Created December 15, 2025 17:37 — forked from dbcooper/per-user-telnet.reg
Per-user telnet URL association for Windows
Windows Registry Editor Version 5.00
; Per-user telnet URL mapping
;
; Works w/ Firefox and Chrome under Windows 7
;
; Be sure to replace the path to PuTTY with the correct destination
;
[HKEY_CURRENT_USER\Software\Classes\telnet]
@CypherpunkSamurai
CypherpunkSamurai / main.cpp
Created December 11, 2025 02:31 — forked from zlash/main.cpp
Minimal bgfx + SDL2
#include <SDL2/SDL.h>
#include <SDL2/SDL_syswm.h>
#include <bgfx/bgfx.h>
#include <bgfx/platform.h>
#include <bx/bx.h>
#include <bx/mutex.h>
#include <bx/thread.h>
void threadInit()
{
@CypherpunkSamurai
CypherpunkSamurai / cache middleware.py
Created November 30, 2025 19:21
FastAPI Middlwares
# tracer.py
# Request Caching Middleware
import time
import uuid
# types
from typing import List, Optional
from cachetools import TTLCache
from starlette.middleware.base import BaseHTTPMiddleware, RequestResponseEndpoint
@CypherpunkSamurai
CypherpunkSamurai / patch_modem.py
Last active November 22, 2025 10:36
ZTE F50 nr_modem_a.bin patcher
#!/usr/bin/env python3
import argparse
import sys
try:
from colorama import Fore, Back, Style, init
except:
print("colorama module not found! install colorama module!")
print("type: pip3 install colorama")
sys.exit(1)
@CypherpunkSamurai
CypherpunkSamurai / LunarDAO IMEI.csv
Created November 21, 2025 19:41
LunarDAO IMEI csv
We can't make this file beautiful and searchable because it's too large.
IMEI NUMBER,BRAND,MODELS
352773074248705,Acer,Liquid Z630
148270036030247,Alcatel,Alcatel idealXCITE
148020069317791,Alcatel,Alcatel Ideal
146990066384444,Alcatel,Alcatel Ideal
146790022621701,Alcatel,Alcatel OneTouch Fierce XL
146710039197230,Alcatel,Alcatel Pixi Theatre
146580097529420,Alcatel,Alcatel Idol 4
146500098871977,Alcatel,Alcatel Fierce 4
146360030115839,Alcatel,Alcatel Idol 4S with Windows