Skip to content

Instantly share code, notes, and snippets.

@mobob
mobob / agent-browser.md
Last active April 2, 2026 07:37
Claude Code Skill for agent-browser

agent-browser

Browser automation CLI optimized for AI agents. Use npx agent-browser for all commands.

When to Use

  • Testing websites and web applications
  • Verifying UI changes after code modifications
  • Checking for console errors and page issues
  • Taking screenshots for documentation or debugging
@idelem
idelem / titleUrlMarkdownClip.js
Last active February 14, 2026 16:05 — forked from bradleybossard/titleUrlMarkdownClip.js
Bookmarklet to copy current page title and url in Markdown format to clipboard, like [title](url) - Usual for posting links to resources in README.md files
javascript:(function() {
function copyToClipboard(text) {
if (window.clipboardData && window.clipboardData.setData) {
/*IE specific code path to prevent textarea being shown while dialog is visible.*/
return clipboardData.setData("Text", text);
} else if (document.queryCommandSupported && document.queryCommandSupported("copy")) {
var textarea = document.createElement("textarea");
textarea.textContent = text;
# Luke's config for the Zoomer Shell
# Enable colors and change prompt:
autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
# History in cache directory:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/zsh/history
@SabreCat
SabreCat / gist:792fc924e6dd0b6f0e7a7f1be8da5c4a
Last active March 22, 2023 15:01
Block useless Twitter crap in uBlock Origin
twitter.com##article:has(a:has-text(/liked|replied|follow/i))
twitter.com##article:has(a:has-text(/liked|replied|follow/i)):xpath(../..) + div
twitter.com##article:has(a:has-text(/liked|replied|follow/i)):xpath(../..) + div + div
twitter.com##div > div > div > div > div > div > div > div > div > div:has-text(/You might like|Trends for you|Who to follow/)
twitter.com##div [role="heading"]:has-text(/Who to follow/):xpath(..)
twitter.com##div [role="heading"]:has-text(/Who to follow/):xpath(../../..) + div
twitter.com##div [role="heading"]:has-text(/Who to follow/):xpath(../../..) + div + div
twitter.com##div [role="heading"]:has-text(/Who to follow/):xpath(../../..) + div + div + div
twitter.com##div [role="heading"]:has-text(/Who to follow/):xpath(../../..) + div + div + div + div
@jez
jez / gdb-cheatsheet.md
Created September 18, 2016 20:49
GDB Cheatsheet from CS:APP Website, reformatted
@jonhoo
jonhoo / go-test-many.sh
Last active April 20, 2025 03:54
Script for running go tests many times in parallel, printing the current status, and logging errors
#!/bin/bash
#
# Script for running `go test` a bunch of times, in parallel, storing the test
# output as you go, and showing a nice status output telling you how you're
# doing.
#
# Normally, you should be able to execute this script with
#
# ./go-test-many.sh
#
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 5, 2026 07:07
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@jboner
jboner / latency.txt
Last active May 5, 2026 03:50
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD