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 / README.md
Created May 26, 2026 18:33
Python3 Portable

Here is the complete, definitive guide to the Python and Conda packaging ecosystems. This integrates every component from the original list, alongside native Python tooling, modern Rust-based alternatives, embedded environments, and direct URLs for every tool.

1. Full Installer Distributions (Heavyweight)

These installers package the environment tool along with massive pre-compiled software bundles.

  • Anaconda Distribution: The flagship 5GB+ bundle. It includes a Graphical User Interface (Anaconda Navigator) and hundreds of pre-installed data science packages. Subject to Anaconda's commercial license fees.
  • URL: anaconda.com/download

install with permissions

pnpm add -g --stream -y --dangerously-allow-all-builds @google/gemini-cli @qwen-code/qwen-code opencode-ai @openai/codex @kilocode/cli freebuff @earendil-works/pi-coding-agent deepseek-tui mini-kode 9router

update with permissions

pnpm update -g --latest --dangerously-allow-all-builds

pnpm self-update

@CypherpunkSamurai
CypherpunkSamurai / rust.portable.ps1
Created May 19, 2026 06:29
Rust Installer - Portable
<#
.SYNOPSIS
Creates a portable Rust installation with virtualenv-style activation scripts.
.DESCRIPTION
This script creates a self-contained, portable Rust installation that can be
moved between systems or run from external drives. Supports both GNU and MSVC toolchains.
Creates Python virtualenv-style activate/deactivate scripts for shell integration.
.PARAMETER InstallDir
Directory where portable Rust will be installed. Default: .PortableRust
.PARAMETER ToolchainVersion
@CypherpunkSamurai
CypherpunkSamurai / README.md
Created May 16, 2026 15:38
Good Readme Example
https://github.com/windmill-labs/windmill
https://github.com/google/nsjail
https://www.docker.com/products/docker-sandboxes/
https://github.com/alibaba/OpenSandbox
https://addozhang.medium.com/ai-agent-code-execution-sandboxes-isolation-from-containers-to-microvms-e80848effea5
https://github.com/lima-vm/lima
https://github.com/e2b-dev/e2b
https://modal.com/blog/top-code-agent-sandbox-products
https://github.com/beam-cloud/beta9
https://github.com/TencentCloud/CubeSandbox

USER:

don't search the internet. This is a test to see how well you can craft non-trivial, novel and creative solutions given a "combinatorics" math problem. Provide a full solution to the problem.

Problem:
"A hypergraph $(V,E)$ has a \emph{partition of size $m$} if there exist $D\subseteq V$ and $P\subseteq E$ such that $|D|=m$ and every vertex of $D$ lies in exactly one edge of $P$. Let $H(n)$ be the maximum $|V|$ over all hypergraphs $(V,E)$ with no isolated vertices and no partition of size greater than $n$. It is known that [

@CypherpunkSamurai
CypherpunkSamurai / antml-writer.md
Created May 7, 2026 22:03
Anthropic Harness Writer
name antml-prompt-writer
description The ultimate skill for crafting system prompts and meta prompts that harness the full power of Anthropic’s AntML (Anthropic Markup Language). Contains the complete leaked tag lexicon, tool orchestration patterns, citation and artifact rules, safety policies, and the official metaprompt methodology. When given a harness context (tools, agent behaviours, output requirements), produces complete Claude Code‑level meta prompts that define everything from function‑calling syntax to multi‑agent spawning.
"""
================================================================================
PPO.RL.py — Production-Grade Proximal Policy Optimization
================================================================================
WHAT IS PPO? (Explain Like I'm 5)
----------------------------------
Imagine you're teaching a dog (the "agent") to navigate a maze (the "environment").
Every step the dog takes, it gets a treat (+reward) or a smack (-reward).
"""
portablelib.py — Python port of the portapps Go library.
Windows-specific features (registry, msgbox, mutex, console, locale, env)
use ctypes/winreg and are no-ops / raise NotImplementedError on non-Windows.
"""
import ctypes
import json
import logging
import os

Here’s a list with the model/project name, a DOI (or stable arXiv identifier), and the GitHub repository where available.