I hereby claim:
- I am geraldlai on github.
- I am geraldlai (https://keybase.io/geraldlai) on keybase.
- I have a public key ASBTqM_G4735KEFfwf2caEvW7ZFQM9nGr-dCVo6SCdJFuQo
To claim this, I am signing this object:
#!/usr/bin/env perl | |
# grec: grep grep-context | |
# $ grep -C 5 foo * | grec grep bar | |
# ( grep 'bar' from contextual output with 'foo' while maintaining context ) | |
# ( grec understands grep, rg, and ag ) | |
# Author: Gerald Lai | |
# License: 0BSD |
# remap prefix | |
unbind C-b | |
set -g prefix C-Space | |
bind C-Space send-prefix | |
# 0 is too far | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# vi bindings for copy mode |
#!/usr/bin/perl | |
# git commit-fix: fixup an old commit quickly | |
# $ git commit-fix 1efa604 | |
# ( fixup commit 1efa604 to have currently staged changes ) | |
# ( unstaged changes will be safely stashed away ) | |
# $ git commit-fix -s 1efa604 | |
# ( same as above, but allow new commit message to be squashed in ) |
#!/usr/bin/perl | |
# snuff: kill processes gracefully | |
# Author: Gerald Lai | |
# License: 0BSD | |
use warnings; | |
use strict; |
#!/usr/bin/perl | |
# wgrep: write grep output back as changes | |
# ( requires 'ed' line editor ) | |
# $ grep -Rn foo . | sed 's/foo/bar/' | wgrep | |
# ( 'wgrep -a' avoids trimming trailing spaces by default ) | |
# Author: Gerald Lai | |
# License: 0BSD |
#!/usr/bin/perl | |
# stun: ssh tunneling wrapper for convenient static port forwarding | |
# Author: Gerald Lai | |
# License: 0BSD | |
use warnings; | |
use strict; |
#!/usr/bin/perl | |
# tmx: tmux execute (requires tmux v2.4+) | |
# Author: Gerald Lai | |
# License: 0BSD | |
use warnings; | |
use strict; |
#!/usr/bin/env perl | |
# git (mer)ge ma(gic) - DWIM rebasing | |
# $ git mergic master | |
# # Merging from: [origin] master | |
# ( merges or rebases current branch onto origin/master ) | |
# Author: Gerald Lai | |
# License: 0BSD |
#!/usr/bin/perl | |
# git (ma)gic (ch)eck(o)ut - Oooh keep it together, git! | |
# | |
# Each branch maintains its stashed changes separately & contained. | |
# Usage: 'git macho' drop-in replacement for 'git checkout' | |
# Author: Gerald Lai | |
# License: 0BSD |
I hereby claim:
To claim this, I am signing this object: