Skip to content

Instantly share code, notes, and snippets.

View PeronGH's full-sized avatar

Peron PeronGH

  • Liverpool, England
  • 07:15 (UTC)
View GitHub Profile
@PeronGH
PeronGH / spec-first-workflow.md
Last active February 24, 2026 05:01
CLAUDE.md & AGENTS.md

Workflow

Principles

Order of operations

  1. Spec first: the spec is the durable source of truth. Code can be deleted and rewritten; the spec survives.
  2. Tests are not optional: tests and code are written together, but specs define what to test before implementation begins. Only test code that has meaningful logic (branching, transformations, error handling). Don't test code that can only break if the language, runtime, or a dependency breaks.
  3. Code implements the spec: write code along with tests, implementing the spec in full.
@PeronGH
PeronGH / ROCm-WSL-Strix-Halo.md
Last active February 16, 2026 11:21
Set up ROCm in WSL on Strix Halo Systems

How to Set up ROCm in WSL on Strix Halo Systems

First, wsl --install Ubuntu-24.04

In Ubuntu 24.04:

Install deps:

sudo apt update
sudo apt install -y ca-certificates wget gpg
@PeronGH
PeronGH / script.go
Created December 30, 2025 13:24
Go Script
//usr/bin/env go run "$0" "$@"; exit
package main
import "fmt"
func main() {
fmt.Println("Hello, world!")
}
@PeronGH
PeronGH / convert_to_sid.sh
Last active November 29, 2025 16:51
Debian Setup
#!/bin/bash
# safety tools
apt install apt-listbugs apt-listchanges
# modify apt source
# post upgrade
apt autoremove --purge
apt modernize-sources
@PeronGH
PeronGH / filterlist.txt
Last active November 28, 2025 19:24
AdFilter
! Remove YouTube preview in Gemini Web
gemini.google.com##.single-video-container
@PeronGH
PeronGH / brew.sh
Last active November 27, 2025 11:57
Modern CLI
#!/bin/bash
# modern utils
brew install rg fd zoxide dust duf bat sd procs tlrc jq
# modern vcs
brew install jj
@PeronGH
PeronGH / remote_git_ssh.md
Last active December 2, 2025 15:41
Quick Remote SSH Deployment

Remote server:

git init
git config receive.denyCurrentBranch updateInstead

touch .git/hooks/post-receive
chmod +x .git/hooks/post-receive
@PeronGH
PeronGH / windows-gaming-on-macos-guide.md
Last active August 10, 2025 12:22
Windows Gaming on macOS Guide

Windows Gaming on macOS Guide

Steps

  1. Install GPTK
brew install --cask --no-quarantine gcenx/wine/game-porting-toolkit
// ==UserScript==
// @name Claude Plus
// @namespace https://gist.github.com/PeronGH/209678c5ea0f228344ea2c76bb5e9850
// @version 1.0.3
// @description Enhance your Claude experiences
// @author Peron
// @match https://claude.ai/chats
// @match https://claude.ai/chat/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=claude.ai
// @grant GM_registerMenuCommand
`?alias=react:preact/compat,react-dom:preact/compat,@types/react:preact/compat,@types/react-dom:preact/compat&external=preact`