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
// ==UserScript==
// @name YouTube Can't Even Write a True Theater Mode
// @namespace CypherpunkSamurai
// @version 0.5
// @description Youtube is hiring people who can't even write a proper css theater mode.
// @author Azb
// @match https://www.youtube.com/watch*
// @match https://www.youtube.com/playlist*
// @match https://www.youtube.com/shorts*
// @match https://www.youtube.com/live*
@CypherpunkSamurai
CypherpunkSamurai / mitmproxy-ca.pem
Created March 15, 2025 18:26
mitm proxy key and cert
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDCrXfP4bTEwGsT
dzbh+NboJTGRME1IxHViCi+qJHcKASYz33uFyLqkTO7eExzQPty7X8Oc3TJLwRxn
ftxtv9SyIxDEi7Z2WCih5sPoJANS75yRJUwqTGGc0oVSEnBC40yf0RNZ0ZT2cQ/2
ZllvohefnwVCROIJbT1DYo0UtFsMkDVaBPm4nGfn4dlTJFPqOcs1bDCoZtID8q4Q
ku9rXiNPcGodDoOesUVOk4c472RkRf8eIaug3PiTD/GO6hwVXCipOIIagZSjhATE
LE3l+SqM5QVKCxWOECE84y2KWUG6p7z2iFF4Age2iZVKw2kf2B80DPivFbs36bGq
HxexWS7BAgMBAAECggEACFn/v1PL+PrWPR4KpTQTKB9cWoGrdxkyffO46sAouS2m
cWg/eNRNKXpBbxZ70HU56/HmRub4XuaYbNo046Jsof2+HOhvefE7QQLQ2bcdy2OL
IHDsrQ3czCj93jD7TutIYLzL6zkB/naIPEZUxOS7xbXBOIATAFuG2sqyCbbZBxdf
@CypherpunkSamurai
CypherpunkSamurai / patch.bat
Created March 5, 2025 22:25 — forked from shinchiro/patch.bat
Creating xdelta patch easy way.
@echo OFF
:: How to use:
:: 1. Put xdelta3.exe in C:\
:: 2. Put old_file and new_file in any folder but must in same directory
:: 3. run with cmd: patch.bat old_file.mkv new_file.mkv mypatch
:: 4. patch now in 'xdelta' folder
set xdelta3="C:\xdelta3.exe"
set patch_dir=%~dp1\xdelta
call :Createxdelta %1 %2 %3
@CypherpunkSamurai
CypherpunkSamurai / DrawSineWave.html
Created March 4, 2025 13:49 — forked from gkhays/DrawSineWave.html
Oscillating sine wave, including the steps to figuring out how to plot a sine wave
<!DOCTYPE html>
<html>
<head>
<title>Sine Wave</title>
<script type="text/javascript">
function showAxes(ctx,axes) {
var width = ctx.canvas.width;
var height = ctx.canvas.height;
var xMin = 0;
@CypherpunkSamurai
CypherpunkSamurai / threejs.html
Created March 2, 2025 18:31
ThreeJS HTML Template
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/"
}
}
</script>
@CypherpunkSamurai
CypherpunkSamurai / r1.py
Created February 27, 2025 19:38 — forked from vgel/r1.py
script to run deepseek-r1 with a min-thinking-tokens parameter, replacing </think> with a random continuation string to extend the model's chain of thought
import argparse
import random
import sys
from transformers import AutoModelForCausalLM, AutoTokenizer, DynamicCache
import torch
parser = argparse.ArgumentParser()
parser.add_argument("question", type=str)
parser.add_argument(
@CypherpunkSamurai
CypherpunkSamurai / structlog_fastapi.py
Created February 25, 2025 07:42 — forked from nkhitrov/structlog_fastapi.py
Structlog FastAPI example
"""
Structlog example configuration with FastAPI.
Features:
- async bound logger
- contextvars to log request-id and other meta data
- custom format for default logging loggers and structlog loggers
"""
import asyncio
import logging
@CypherpunkSamurai
CypherpunkSamurai / README.md
Created February 25, 2025 05:53 — forked from matusnovak/README.md
GPG + Git SSH Authentication and Signing on Windows 10

GPG + Git SSH Authentication and Signing on Windows 10

Introduction

This simple Gist will explain how to settup your GPG key to work for SSH authentication (with Git) and Git commit signing on Windows 10. This may seem straightforward on Linux, but there are certain tweaks needed on Windows.

No Cygwin, no MinGW, no Git Bash or any other Linux emulated environment. This works in pure Windows 10.

Software needed

@CypherpunkSamurai
CypherpunkSamurai / TorNoAuth.md
Created February 23, 2025 17:28 — forked from DusanMadar/TorNoAuth.md
A step-by-step guide how to use Tor without Authentication