Skip to content

Instantly share code, notes, and snippets.

cat ~/.ssh/config | grep 'Host ' | cut -f 2 -d ' ' | sort -u
git filter-branch --commit-filter 'export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"; export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"; export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"; git commit-tree "$@"' -- basecommit..HEAD
git reflog expire --expire-unreachable=now --all
git gc --prune=now
@await-andy
await-andy / .zprofile
Created October 30, 2021 14:58
config terminal
set -o vi
alias docs='cd ~/docs'
alias ll='ls -lah'
alias lsdot='ls -d .*'
export CLICOLOR=1
export HISTCONTROL=ignorespace:erasedups
HISTCONTROL=erasedups
@await-andy
await-andy / .ideavimrc
Last active May 12, 2025 23:40
config vim
source ~/.vimrc
set surround
set exchange
set ReplaceWithRegister
set highlightedyank
set ideamarks
set commentary
Plug 'justinmk/vim-sneak' " s__ - like f but 2 chars, ;, - moves on
set easymotion