Skip to content

Instantly share code, notes, and snippets.

@ranyitz
ranyitz / gb.sh
Last active July 20, 2022 11:21
better git branch
alias gb="git for-each-ref --color=always --sort=-committerdate refs/heads/ --format=' %(color:green)%(committerdate:relative)%(color:reset)%09%(HEAD) %(color:yellow)%(refname:short)%(color:reset) %(color:magenta)%(authorname)%(color:reset) • %(contents:subject)'"
alias gbi="gb | fzf --ansi --header='checkout branch <choose branch>' --reverse | awk '{print $4}' | xargs git checkout"
@arikfr
arikfr / fabfile.py
Last active February 19, 2021 10:03
re:dash fabfile
#!/usr/bin/env python
# vim: ts=4:sw=4:expandtab:autoindent:
import os
import sys
import requests
import filecmp
from fabric.context_managers import hide, settings, prefix
from fabric.api import sudo, task, run, cd, env
from fabric.contrib.console import confirm
from fabric.colors import green