Skip to content

Instantly share code, notes, and snippets.

View venables's full-sized avatar

Matt Venables venables

View GitHub Profile
@venables
venables / README.md
Last active July 23, 2026 11:33
Herdr + Ghostty native keybindings (2 config files)

Herdr + Ghostty native-shortcut keybindings

Two files that give Herdr macOS-native keyboard shortcuts inside Ghostty.

  • ghostty/config — maps native chords (cmd+t, cmd+w, cmd+d, cmd+opt+hjkl, etc.) to the escape / CSI-u sequences Herdr listens for. Merge these into your ~/.config/ghostty/config.
  • herdr/config.toml — Herdr's own keymap. Only the overrides to Herdr defaults live here; anything omitted uses the default the ghostty chords
@venables
venables / keybase.md
Created September 10, 2019 14:36
Keybase verification

Keybase proof

I hereby claim:

  • I am venables on github.
  • I am venables (https://keybase.io/venables) on keybase.
  • I have a public key whose fingerprint is 6151 7C3B 506E 00A6 5FA4 8CA6 958F 6FDA 217A B623

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am venables on github.
  • I am venables (https://keybase.io/venables) on keybase.
  • I have a public key whose fingerprint is 76D0 F036 75B0 7C09 0BE0 F44C F270 1027 87BD 46D3

To claim this, I am signing this object:

@venables
venables / gist:4205617
Created December 4, 2012 16:09
FileUtils.cp_r using preserve fails if there are symlinks
# FileUtils.cp_r using "preserve: true" fails if there's a symlink that points to a file that has not yet
# been copied over. This is because "preserve" updates the metadata for the files (including symlink files)
# and the symlink will not be valid when it is saved (causing a failure).
require "fileutils"
base = "./fileutils_cp_r_base"
dest = "./fileutils_cp_r_dest"
{ "A" => "B", "B" => "A" }.each do |symlink, file|
@venables
venables / gist:3973553
Created October 29, 2012 13:31
Switch from rvm to rbenv
brew doctor
brew update
rvm implode
brew install rbenv
brew install ruby-build
echo "if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi" > ~/.zshrc
source ~/.zshrc
@venables
venables / git-cleanup.sh
Created May 21, 2012 13:44
Clean up a git repo
#!/usr/bin/env bash
# This script will clean up your git repo by doing the following:
# => Pull the latest master
# => Perform a 'git remote prune origin'
# => Delete all local branches that are fully merged into master
# => Delete all remote branches that are fully merged into master (if the --remote option is passed)
# This has to be run from master
git checkout master