Skip to content

Instantly share code, notes, and snippets.

View kupriyanenko's full-sized avatar

Alexey Kupriyanenko kupriyanenko

View GitHub Profile
/**
* Formatter
*
* date(Object Date, String)
* http://pubs.opengroup.org/onlinepubs/007908799/xsh/strftime.html
* + bonus: milliseconds as %SSS
*/
/**
@kupriyanenko
kupriyanenko / delete-remote-merged.sh
Last active August 29, 2015 14:16 — forked from schacon/gist:942899
Delete merged remote branches
$ git remote prune origin &&
git branch -r --merged |
grep origin |
grep -v '>' |
grep -v master |
xargs -L1 |
awk '{split($0,a,"/"); print a[2]}' |
xargs git push origin --delete
@kupriyanenko
kupriyanenko / .vimrc
Last active December 31, 2015 21:39
vim config
"--------------------------------------------------
" Bundles
" Setting up Vundle if not installed
let iCanHazVundle=1
let vundle_readme=expand('~/.vim/bundle/vundle/README.md')
if !filereadable(vundle_readme)
echo 'Installing Vundle..'
echo ''
silent !mkdir -p ~/.vim/bundle
@kupriyanenko
kupriyanenko / .gitconfig
Last active December 25, 2015 00:09
.gitconfig
[user]
name = kupriyanenko
email = a.kupriyanenko@gmail.com
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:\"%C(yellow)%h%Creset %ad | [%Cgreen%an%Creset] %s%d\" --graph --date=short
type = cat-file -t
@kupriyanenko
kupriyanenko / .zshrc
Last active February 17, 2016 23:00
zsh config
source ~/.zsh/zsh-git-prompt/zshrc.sh
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
PROMPT='%B%F{red}%n:%F{blue}%~%f%b$(git_super_status)%(!.#.$) '
autoload -U compinit
compinit
zmodload zsh/complist
zstyle ':completion:*' menu yes select