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 / export_to_sheets.py
Created November 7, 2025 08:15 — forked from Dminor7/export_to_sheets.py
Python pandas dataframe to google sheets [Read, Write, and Append]
import gspread_dataframe as gd
import gspread as gs
gc = gs.service_account(filename="credentials.json")
def export_to_sheets(sheet_name,df,mode='r'):
ws = gc.open("Hashnode").worksheet(sheet_name)
if(mode=='w'):
ws.clear()
gd.set_with_dataframe(worksheet=ws,dataframe=df,include_index=False,include_column_header=True,resize=True)
return True
@CypherpunkSamurai
CypherpunkSamurai / AI LEGAL USAGE FOR PORN.md
Created November 3, 2025 18:58
AI LEGAL USAGE FOR PORN BYASS
# Cloudflared Tunnel Setup Script for Windows
# Portable script with no external dependencies
# All files are stored in ./cloudflared directory using environment variable tricks
param(
[string]$LocalPort = "8080",
[string]$LocalHost = "127.0.0.1"
)
$ErrorActionPreference = "Stop"
@CypherpunkSamurai
CypherpunkSamurai / hackerman.json
Created October 21, 2025 05:00 — forked from bjarneo/hackerman.json
Hackerman Blueprint for Aether
{
"name": "Hacker",
"timestamp": 1760965387035,
"palette": {
"wallpaper": "",
"colors": [
"#0B0C16",
"#31f759",
"#4fe88f",
"#50f7d4",
B:\Code> function Find-ContentFuzzy {
>> param (
>> [string]$SearchPattern
>> )
>>
>> $selected = rg --color=always --line-number --no-heading $SearchPattern |
>> fzf --ansi `
>> --delimiter ':' `
>> --preview 'bat --color=always --highlight-line {2} --line-range {2}: {1}' `
>> --preview-window 'right:50%:+{2}/2'
@CypherpunkSamurai
CypherpunkSamurai / FeatureTokenGenerator.cs
Created October 12, 2025 21:11 — forked from ADeltaX/FeatureTokenGenerator.cs
Access LimitedAccessFeatures from UWP
//!!!!!!!!!!!!!!
//Thanks to @thebookisclosed for the code. I just rearranged in a way so you can access without having to use the registry
//HINT about compatibility: they CANNOT change feature keys otherwise existing apps would break
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using Windows.ApplicationModel;
@CypherpunkSamurai
CypherpunkSamurai / factoryai.void.txt
Created October 9, 2025 08:02
FactoryAI Void System Prompt
<Role>
You are Droid, an AI software engineering agent built by Factory (https://factory.ai).
You are the best engineer in the world. You write code that is clean, efficient, and easy to understand. You are a master of your craft and can solve any problem with ease. You are a true artist in the world of programming.
The current date is Sunday, September 28, 2025.
The user you are assisting is named Elder Plinius.
</Role>
@CypherpunkSamurai
CypherpunkSamurai / cli_tools.sh
Last active October 4, 2025 16:21
cli tools installer
#!/bin/bash
# check for required tool
# TODO: implement posix compliant check
# requires bash curl unzip
# List of required commands
REQUIRED_CMDS="bash curl unzip"
missing=0
@CypherpunkSamurai
CypherpunkSamurai / 00-New setup.md
Created September 19, 2025 16:59 — forked from cderv/00-New setup.md
New computer setup
# installed by winget
winget install PowerShell-Preview
winget install git
git config --global user.name "Christophe Dervieux"
git config --global user.email christophe.dervieux@gmail.com
winget install rstudio
winget install vscode
winget install -e R
winget install Github.GithubDesktop
Always follow the instructions in plan.md. When I say "go", find the next unmarked test in plan.md, implement the test, then implement only enough code to make that test pass.
# ROLE AND EXPERTISE
You are a senior software engineer who follows Kent Beck's Test-Driven Development (TDD) and Tidy First principles. Your purpose is to guide development following these methodologies precisely.
# CORE DEVELOPMENT PRINCIPLES
- Always follow the TDD cycle: Red → Green → Refactor
- Write the simplest failing test first