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 / 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
"""
@CypherpunkSamurai
CypherpunkSamurai / system prompt generator system prompt.md
Created March 31, 2025 23:31
System Prompt Generator System Prompt
YOU ARE AN ELITE PROMPT ENGINEER RECRUITED BY OPENAI TO CRAFT OPTIMAL PROMPTS FOR LANGUAGE LEARNING MODELS (LLMs) OF VARYING CAPACITIES. YOUR CORE MISSION IS TO DESIGN PROMPTS THAT TRANSFORM LLMs INTO "EXPERT AGENTS" UNIVERSALLY ACKNOWLEDGED AS THE FOREMOST AUTHORITIES IN THEIR DESIGNATED DOMAINS. THESE AGENTS MUST EXHIBIT UNRIVALED EXPERTISE AND DEMONSTRATE THE ABILITY TO NAVIGATE COMPLEX QUERIES WITH EXCEPTIONAL PRECISION, EMPLOYING A METICULOUSLY STRUCTURED CHAIN OF THOUGHTS TO GUIDE THEIR REASONING PROCESS

###INSTRUCTIONS###

1. UTILIZE **ALL CAPS** TO EMPHASIZE CRUCIAL INSTRUCTION VERBS AND STATES WITHIN EACH PROMPT, ENSURING THE PRIMARY FOCUS REMAINS ON CREATING WORLD-CLASS EXPERT AGENTS
2. STRUCTURE YOUR RESPONSES WITH CLARITY AND PRECISION
3. INCORPORATE A DETAILED **CHAIN OF THOUGHTS** IN EVERY PROMPT TO GUIDE THE AGENT'S REASONING PROCESS. CLEARLY OUTLINE HOW THE EXPERT AGENT APPROACHES, ANALYZES, AND RESOLVES THE GIVEN TASK
4. PROVIDE **PRECISE, SPECIFIC, AND ACTIONABLE INSTRUCTIONS**
@CypherpunkSamurai
CypherpunkSamurai / README.md
Created March 31, 2025 22:32 — forked from nmarley/README.md
Go / C++ bindings example

Go / C++ bindings example

This is an example of Go code calling to a C++ library with a C wrapper.

Build

go build  # this only ensures it compiles
@CypherpunkSamurai
CypherpunkSamurai / Apple_WebKit_Builds_for_Win.md
Last active March 31, 2025 10:28
Apple WebKit Builds for Windows

Apple WebKit Builds for Windows

  1. https://registry.npmmirror.com/binary.html?path=playwright/builds/webkit/2140/
  2. https://cdn.playwright.dev/dbazure/download/playwright/builds/webkit/2140/webkit-ubuntu-22.04.zip
  3. https://cdn.playwright.dev/dbazure/download/playwright/builds/webkit/2140/webkit-win64.zip
// https://github.com/microsoft/playwright/blob/fffd87af1d65bc4d91ecf2eb47878f59b2ede514/packages/playwright-core/src/server/registry/index.ts#L45
const PLAYWRIGHT_CDN_MIRRORS = [
 'https://cdn.playwright.dev/dbazure/download/playwright', // ESRP CDN
@CypherpunkSamurai
CypherpunkSamurai / List of JavaScript GUI libraries.md
Created March 21, 2025 20:44 — forked from SMUsamaShah/List of JavaScript GUI libraries.md
dat.gui alternatives to create GUI from JavaScript object

JavaScript GUI libraries

These libraries can be used to quickly create a GUI for configureable parameters using sliders, checkboxes, colors pickers etc

  1. Tweakpane https://github.com/cocopon/tweakpane Demo: https://cocopon.github.io/tweakpane/
  2. control-panel https://github.com/freeman-lab/control-panel
  3. ControlKit https://github.com/automat/controlkit.js
  4. guify https://github.com/colejd/guify Main site is down, here is the demo https://jons.website/projects/guify/index
  5. oui https://github.com/wearekuva/oui
  6. Palette.js https://github.com/lehni/palette.js