Skip to content

Instantly share code, notes, and snippets.

@r-medina
r-medina / .gitconfig
Last active January 21, 2026 19:38
put in ~/.gitconfig
[alias]
# Remove files from index, keep working tree
unstage = reset HEAD --
# Tracked-only, short status
s = status -uno --short
# Compact commit graph
lg = log --all --decorate --oneline --graph
@r-medina
r-medina / gist:0d29407b20de545d1cf8
Last active August 29, 2015 14:09
emacs stuff in .bashrc
# checks if there is an emacs daemon running: yes - open a client with the file, no -
# start a daemon, open client
#
# did this because i only use emacs in terminal and dont want
# emacsclient <file_name> to open file in an open frame
#
# caution: even though all arguments passed via `${@:1}`, `emacsclient` only opens
# one file, unlike `emacs`
#
# excluding `grep` from `ps`: