move GistHub from https://gist.github.com/musinsky/2370651