Skip to content

Instantly share code, notes, and snippets.

View trkaplan's full-sized avatar

Tuncay Kaplan trkaplan

View GitHub Profile
// ab-batch-type: Fast keyboard typing for canvas-based web apps via agent-browser daemon.
// Sends all keystrokes through the daemon's keyboard action (trusted CDP events, single event path).
//
// Usage:
// node <this-script> "text" Tab "text" Enter ... # args mode
// echo '"text" Tab "text" Enter ...' | node <this-script> # stdin mode (unlimited size)
//
// Stdin mode reads all input, splits on whitespace (respecting "quoted strings"),
// and processes identically to arg mode. Use for large payloads that exceed shell
// argument limits.
@steipete
steipete / TWITTER_BLOCKLIST_PUBLIC.md
Created March 9, 2026 06:13
Redacted Twitter mention blocklist policy

Twitter Mention Blocklist Policy

Public-safe version. Redacted. No handles, no links, no callouts.

Block immediately

  • Strongly derogatory replies
  • Crypto spam, token shills, wallet/contract junk
  • Clear AI slop or reply-bot behavior
  • Repetitive low-context spam
@kieranklaassen
kieranklaassen / 2026-01-23-feat-claude-code-multi-agent-orchestration-plan.md
Last active August 18, 2026 05:34
Claude Code Multi-Agent Orchestration System

Claude Code TeammateTool - Source Code Analysis

This is not a proposal. This documents existing but hidden functionality found in Claude Code v2.1.19 binary, plus speculation on how it could be used.


Executive Summary

TeammateTool already exists in Claude Code. We extracted this from the compiled binary at ~/.local/share/claude/versions/2.1.19 using strings analysis. The feature is fully implemented but gated behind feature flags (I9() && qFB()).

@trkaplan
trkaplan / http-docs-prompt.md
Created September 11, 2025 07:45 — forked from DavidWells/http-docs-prompt.md
Create REST API interactive docs prompt

Create .http files to Interact with our API endpoints.

Your task: Is to take our API endpoints that are listed and create the API.md file for us to use in our editor to make requests via the vscode-restclient extension.

Follow this process:

  1. Identify Recent Project Developments:
    • Review information about recently completed tasks (e.g., from docs/tasks/, task management systems if accessible, or summarized in recent discussions).
    • Examine recent commit history for significant changes to code, features, or configurations.
  • Consider any new features added or bugs fixed that might impact documentation.
@yifanzz
yifanzz / code-editor-rules.md
Created December 17, 2024 00:01
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
import React, { useState } from 'react'
import { StyleSheet, Text, ScrollView, Button } from 'react-native'
import TextField from './components/TextField'
export default function App() {
const [value, setValue] = useState('')
const [error, setError] = useState<string | null>(null)
return (
<ScrollView contentContainerStyle={styles.content}>
@Kmaschta
Kmaschta / generate-self-signed-certificate-with-custom-CA.md
Created January 9, 2019 14:43
How to generate a self-signed that is valid for your browser (by creating your custom certificate authority)

If you're using self-signed certificate for your web server on development, you might know the browser warning saying that your certificate isn't valid. If like me you had manually added an exception for this certificate error each time it showed up, this gist is for you.

Properly Configure OpenSSL with your DNS aliases

You'll have to create a self-signed certificate with a custom SubjectAltName.

  1. Find your openssl config. find /usr/lib -name openssl.cnf
@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active August 16, 2026 21:03
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

[based on a true story]

So. Your friend's about to teach you how to make a website. Great!

You make a file, and you save it as 'index.html'. Why it's called 'index' isn't really explained to you, but whatever.

You type the following.

hello world
@wesbos
wesbos / tab-trigger.js
Created November 16, 2015 19:33
How to properly get a TAB trigger working with Emmet inside of JSX
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{