Moved from https://github.com/gstlt/random-stuff