Skip to content

Instantly share code, notes, and snippets.

@ovc
ovc / wsl-ssh-pageant.md
Created December 13, 2019 06:43 — forked from h4de5/wsl-ssh-pageant.md
Use putty's SSH key agent (pageant) from windows in WSL bash - no more "ssh-add" needed
@ovc
ovc / publickey.asc
Last active April 28, 2021 12:54
Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEYFys1RYJKwYBBAHaRw8BAQdALIuG36zlECOnC6sFNEvKLz3do6gNZ3tlENM7
Y3dK5+e0JlJvbWFuIE92Y2hpbm5pa292IDxyb21hLm92Y0BnbWFpbC5jb20+iI4E
ExYKADYWIQQzAAJeJXxfqlcSHwPSLnGT9h9BewUCYFys1QIbAQQLCQgHBBUKCQgF
FgIDAQACHgECF4AACgkQ0i5xk/YfQXsPgQD7BMb7VHLFqY6a7fpRF+dPcySjf/zK
C08bQ1pw2OevNdUBAI7v+Vp1peED6Njo75coX9qP05tI5uQBNg4SWE9s/gILuDME
YFytXBYJKwYBBAHaRw8BAQdAxctM6fDBhXG/+peXDfEy/VaCiycX+jw5Y7j8sJs7
FuuI9QQYFgoAJhYhBDMAAl4lfF+qVxIfA9IucZP2H0F7BQJgXK1cAhsCBQkB4TOA
AIEJENIucZP2H0F7diAEGRYKAB0WIQSRjqVlNYkRWx9CPjTztV2Yg+s6cAUCYFyt
@ovc
ovc / git lol.md
Created April 4, 2022 05:41 — forked from outro56/git lol.md
git lol
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
git config --global alias.lol "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@ovc
ovc / .bash_profile
Created April 4, 2022 08:37 — forked from chrisberkhout/.bash_profile
Git aliases taken from oh-my-zsh's git plugin and translated to bash
# git aliases - taken from oh-my-zsh's git plugin and translated to bash
# https://github.com/robbyrussell/oh-my-zsh/wiki/Cheatsheet#helpful-aliases-for-common-git-tasks
# https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/git/git.plugin.zsh
function git_current_branch() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || \
ref=$(git rev-parse --short HEAD 2> /dev/null) || return
echo ${ref#refs/heads/}
}
function git_current_repository() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || \