Skip to content

Instantly share code, notes, and snippets.

View 0x7067's full-sized avatar

Pedro Guimarães 0x7067

View GitHub Profile
@searls
searls / auto_commit.sh
Last active March 16, 2026 01:38
I got sick of trying to figure out the best time to commit code between me and Claude. I simultaneously found bugs in Claude's checkpoint and rewind system. So now I just auto-commit on every turn with the title being whatever claude just said and the body being whatever my prompt was. (I also often want to go back and replay my prompts when Cla…
#!/bin/bash
# Auto commits after each Claude turn if:
# - A STOP hook is configured that runs this script
# - A <repo_root>.claude/auto_commit.json file has key "enabled" set to `true`
set -euo pipefail
INPUT=$(cat)
# Find git root; bail if not a repo
GIT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null) || exit 0
@intellectronica
intellectronica / 0.README.md
Last active February 17, 2026 17:00
My AGENTS.md for MDFlow

Here's my AGENTS.md (also linked from CLAUDE.md as @AGENTS.md) for hacking agentically on MDFlow recipes.

I have this in ~/.mdflow/, and the agents/recipes live in ~/.mdflow/agents/ and added to the path so that they can be invoked as commands.

With this I can use a coding agent like Claude Code or GitHub Copilot in VSCode and say something like:

> create a new agent using copilot that reviews all the code files in this directory as a poem
@intellectronica
intellectronica / codex.md
Created November 3, 2025 21:32
Claude Code /command to run Codex CLI - Great for complex planning and analysis
allowed-tools description argument-hint model
Bash(/opt/homebrew/bin/codex *)
Run codex with GPT-5-high
your prompt text
haiku

Run the following command exactly. Don't modify it in any way.

@ericflo
ericflo / NO_MOCKS_POLICY.md
Created August 3, 2025 19:10
Written by Claude Opus, endorsed by me

NO MOCKS, NO FALLBACKS, FAIL FAST, FAIL LOUD

This codebase follows a strict policy:

🚫 NO MOCKS

  • Mock objects create false confidence
  • They diverge from production behavior
  • They hide real integration issues
  • They make debugging harder
@daveio
daveio / README.md
Last active July 28, 2025 11:12
fuck ai-shell in the bin

ai.fish

Because @builder-io/ai-shell is terrible. Not their fault, really, OpenAI's models just aren't as good.

Dependencies

Tool Notes URL
Claude Code You need it set up and functional. docs.anthropic.com
A JavaScript package manager We try all of them in order, see NOTES oven-sh/bun
@AndrewAltimit
AndrewAltimit / !README.md
Last active March 16, 2026 13:38
Claude Code and Gemini CLI Integration

Gemini AI Integration MCP Server

A Model Context Protocol (MCP) server that integrates Google's Gemini AI for code review, technical consultation, and AI-assisted development workflows. This server provides seamless integration with Claude Code and other MCP-compatible clients.

Usage

@ardakazanci
ardakazanci / navigation3.kt
Created May 21, 2025 16:57
Navigation3 ViewModel Playground Gist with Jetpack Compose
@Serializable
sealed interface ScreenKey : NavKey {
@Serializable object List : ScreenKey
@Serializable data class Detail(val itemId: String) : ScreenKey
}
class DetailViewModel : ViewModel() {
var clickCount by mutableStateOf(0)
fun onClicked() { clickCount++ }
@bmc08gt
bmc08gt / 1_Keyboard.kt
Last active May 13, 2025 13:34
KMP Software Keyboard Controller
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.platform.SoftwareKeyboardController
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
public abstract class KeyboardController(
@spf13
spf13 / script.js
Last active January 25, 2026 02:56 — forked from danmactough/script.js
Download all your Kindle books before Feb 26, 2025
// 1. Log in to your Amazon account
// 2. Go to your Content Library > Books - https://www.amazon.com/hz/mycd/digital-console/contentlist/booksAll/dateDsc/
// 3. Open your browser's Javascript console
// 4. For each page of books, paste this script into the console
(async function () {
// Close the notification if it appears
function closeNotification() {
const notifClose = document.querySelector("span#notification-close");
if (notifClose) {
@cmod
cmod / html2md.md
Last active October 14, 2025 01:06
Convert HTML (in clipboard) to Markdown (in clipboard) Alfred Workflow

Simple Alfred workflow using Node to convert rich-text HTML (i.e., just select and copy from a website) in your clipbaord to Markdown, replacing the HTML in the clipboard.

Requirements

  • Node.js
    • brew install node in macOS terminal
    • turndown package (npm install turndown in terminal)
  • Alfred launcher

Workflow Configuration