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 / opencode-plugins-guide.md
Created January 20, 2026 15:39 — forked from johnlindquist/opencode-plugins-guide.md
OpenCode Plugins Guide - Complete reference for writing plugins with hooks, custom tools, and event handling

OpenCode Plugins Guide

A comprehensive guide to writing plugins for OpenCode that extend agent behavior with hooks, custom tools, and event handling.

Quick Start

  1. Create a TypeScript file in .opencode/plugin/ (project) or ~/.config/opencode/plugin/ (global)
  2. Export a named plugin function
  3. Restart OpenCode
@CypherpunkSamurai
CypherpunkSamurai / github-agent.prompt.txt
Last active January 16, 2026 08:28
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)