Add block-until-internet script

Originally from https://github.com/bamos/dotfiles/blob/master/.funcs