bin/: copied all of it from steve@ricardo

Ugh, I'm lazy again.