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 / VSCode Potable Windows.ps1
Created August 11, 2025 15:24
VSCode Potable Windows
#Requires -Version 5.1
param(
[switch]$Cleanup,
[string]$DataPath = ".\data",
[string]$LogLevel = "info",
[switch]$DisableLog
)
$DataDir = [System.IO.Path]::GetFullPath((Join-Path $PSScriptRoot $DataPath))
// ==UserScript==
// @name Chub Desloppifier
// @namespace Violentmonkey Scripts
// @match https://*.chub.ai/*
// @match https://*.characterhub.org/*
// @version 1.7
// @author khanonnie
// @description Tries to clean up the flood of shit cards on chub.ai.
// @require https://openuserjs.org/src/libs/sizzle/GM_config.js
// @homepageURL https://gist.github.com/khanonnie/b357f20bfe4e920d8e05fd47f1e6fa75
@CypherpunkSamurai
CypherpunkSamurai / Golang Logging Libraries (Loggers).md
Created July 28, 2025 10:56
Golang Logging Libraries (Loggers)

Golang Logging

  • LogRus
  • ZeroLog
  • Slog
  • Uber Zap
@CypherpunkSamurai
CypherpunkSamurai / copy tools windows.txt
Created July 27, 2025 05:01
Copy Tools for Windows
FreeFileSync - https://freefilesync.org
UltraCopier - https://community.chocolatey.org/packages/ultracopier
@CypherpunkSamurai
CypherpunkSamurai / LDPlayer AIO.md
Last active July 24, 2025 19:09
LDPlayer AIO (Debloat Ad-Block, Root, Custom Rom, Magisk, LSPosed)
title tags
LDPlayer AIO (Debloat, AdBlock, Magisk Root, Custom Rom, Burp Suite, Mitmproxy)
ldplayer, android

LDPlayer AIO (Debloat, AdBlock, Magisk Root, Custom Rom, Burp Suite, Mitmproxy)

Requirements

  • Brain 🧠 [NOT OPTIONAL]
  • LDPlayer
  • ADB (optional, included in LDPlayer Root Folder)
@CypherpunkSamurai
CypherpunkSamurai / gist:4f7816f58e2519c1be999cf39c9e08b4
Created July 22, 2025 12:06 — forked from devinodaniel/gist:8f9b8a4f31573f428f29ec0e884e6673
Generate SSH RSA Private/Public Key pair with Golang
// This shows an example of how to generate a SSH RSA Private/Public key pair and save it locally
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"golang.org/x/crypto/ssh"
@CypherpunkSamurai
CypherpunkSamurai / ssh.go
Created July 22, 2025 12:06 — forked from atotto/ssh.go
golang ssh terminal client
package main
import (
"context"
"flag"
"fmt"
"log"
"os"
"os/signal"
"syscall"
@CypherpunkSamurai
CypherpunkSamurai / instructions.md
Created July 16, 2025 11:13 — forked from atoponce/instructions.md
Convert any binary to an image

Convert any binary to PNG

This walk through comes from @GalacticFurball who tweeted two images representing the youtube_dl source code as of 2020-09-20. They mentioned later in the thread that they struggled converting the gzip-compressed tarball of the source code with Imagemagick to a PNG, so they ended up using a 3rd party website to do the work. This Gist will show you how to do it cleanly and exactly.

Instructions

If you would like to convert any non-image binary into PNG, Imagemagick makes this trivial. I will be executing the commands on a Debian Linux system, so you may need to adjust the commands for BSD, macOS, or Windows as necessary.

@CypherpunkSamurai
CypherpunkSamurai / spec.md
Last active August 12, 2025 14:21
Kiro AI System Prompt

System Prompt

Identity

You are Kiro, an AI assistant and IDE built to assist developers.

When users ask about Kiro, respond with information about yourself in first person.

You are managed by an autonomous process which takes your output, performs the actions you requested, and is supervised by a human user.

You talk like a human, not like a bot. You reflect the user's input style in your responses.

@CypherpunkSamurai
CypherpunkSamurai / server.py
Created July 11, 2025 11:49 — forked from Himenon/server.py
Simple Flask Streaming Server Example
from flask import Flask, Response, stream_with_context, request
import time
app = Flask(__name__)
# ================= Basic Streaming =================
@app.route('/hello-world')
def hello_world():