Skip to content

Instantly share code, notes, and snippets.

View yonson2's full-sized avatar

Peter S. yonson2

View GitHub Profile
@yonson2
yonson2 / brutal-review.md
Created February 11, 2026 10:46
Taken from https://readyset.io/blog/brutal-review-and-the-new-80-20-rule (with some very subtle modifications) save it under ~/.claude/commands/brutal-review.md and invoke it with the /brutal-review command
description Perform a ruthless, multi-perspective code review of git `HEAD`.
allowed-tools Bash(git show:*), Bash(git --no-pager show:*), Bash(git blame:*), Bash(git log:*), Bash(git diff:*), Bash(git rev-parse:*), Bash(git symbolic-ref:*), Task, Read, Read(//tmp/brutal-review-context-*), Edit(//tmp/brutal-review-context-*), Grep, Glob, LSP

Perform a ruthless, brutal, in-depth, extremely critical code review of the most recent change (git HEAD).

Agent assumptions (applies to all agents and subagents):

  • All tools are functional and will work without error. Do not test tools or make exploratory calls.
  • Only call a tool if it is required to complete the task. Every tool call should have a clear purpose.
@yonson2
yonson2 / main.go
Created December 30, 2021 17:46 — forked from mschoebel/main.go
Snippet: login/logout (Golang)
package main
import (
"fmt"
"github.com/gorilla/mux"
"github.com/gorilla/securecookie"
"net/http"
)
// cookie handling
@yonson2
yonson2 / Audience.dart
Created October 28, 2019 10:56 — forked from alfonsodev/Audience.dart
flutter Agora.io broadcast
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:permission_handler/permission_handler.dart';
import 'package:agora_rtc_engine/agora_rtc_engine.dart';
class Audience extends StatefulWidget {
@override
_AudienceState createState() => _AudienceState();
}
@yonson2
yonson2 / multipart_upload.go
Created July 2, 2018 13:22 — forked from mattetti/multipart_upload.go
Example of doing a multipart upload in Go (golang)
package main
import (
"bytes"
"fmt"
"io"
"log"
"mime/multipart"
"net/http"
"os"
@yonson2
yonson2 / file-upload-multipart.go
Created July 2, 2018 13:22 — forked from andrewmilson/file-upload-multipart.go
Golang multipart/form-data File Upload
package main
import (
"net/http"
"os"
"bytes"
"path"
"path/filepath"
"mime/multipart"
"io"

Keybase proof

I hereby claim:

  • I am yonson2 on github.
  • I am yonson (https://keybase.io/yonson) on keybase.
  • I have a public key ASB8zWnmHSWSmYGsBAQbawsHsiCY-4p75gqQTgffbSE8mAo

To claim this, I am signing this object: