factored ruby scripts and one bash script out of this project and into newer ones, and made the last Bash script a gist