couple of scripts from josh/dotfiles