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 / 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 July 25, 2025 16:17
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():
@CypherpunkSamurai
CypherpunkSamurai / convert_to_burp.sh
Last active June 18, 2025 15:46
Mitmproxy / Burp Suite Certificate Copy to Android Emulators (LDPlayer, Nox Emulator, BlueStacks)
# import as CA Cert (DER)
openssl x509 -in mitmproxy-ca-cert.pem -outform DER -out mitmproxy-ca-cert.der
# import as private key (DER)
openssl rsa -in mitmproxy-private-key.pem -outform DER -out mitmproxy-private-key.der
@CypherpunkSamurai
CypherpunkSamurai / ScenarioCreator_for_VisualNovels.py
Created June 13, 2025 22:19
Scenario Creator for Visual Novels
import copy
import json
import random
from datetime import datetime
from pathlib import Path
from typing import Any, Dict, List, Optional, Tuple
class ScenarioConfigManager:
"""Manages loading, saving, and validating scenario configurations"""
@CypherpunkSamurai
CypherpunkSamurai / storage.googleapis.com_bucket_client.py
Last active June 11, 2025 08:10
storage.googleapis.com storage bucket client
"""
Google Cloud Storage Bucket Browser Library
A Python library for browsing Google Cloud Storage buckets using the public API.
Provides an S3-like interface for listing and navigating bucket contents.
"""
import logging
from dataclasses import dataclass
from typing import Dict, Iterator, List, Optional, Union
@CypherpunkSamurai
CypherpunkSamurai / README.md
Last active June 11, 2025 07:02
synology c2 bucket boto3 working

Synology C2 S3 Bucket Boto3 Code

This code fixes the chunked encoding error from SYNOLOGY C2 S3 BUCKET in BOTO3

error: boto3.exceptions.S3UploadFailedError: Failed to upload requirements.txt to requirements.txt: An error occurred (NotImplemented) when calling the PutObject operation: Transfering payloads in multiple chunks using aws-chunked is not supported.

We need to disable chunked encoding as c2 synology has no chunked encoding support like aws s3 or recent minio versions.

Note: This was not AI generated