Skip to content

Instantly share code, notes, and snippets.

@andrewmichaelsmith
Created July 31, 2012 06:24
Show Gist options
  • Save andrewmichaelsmith/3214228 to your computer and use it in GitHub Desktop.
Save andrewmichaelsmith/3214228 to your computer and use it in GitHub Desktop.
thugen
#!/bin/bash
#location of https://github.com/buffer/thug/tree/master/samples on disk
samples=/var/www/thug/samples
#prefix for webserver (should end in /)
url_prefix=http://127.0.0.1/thug/samples/
#thug.py location
thug_install=/opt/thug/src/thug.py
cd $samples
find . -name '*.htm*' -exec python $thug_install $url_prefix{} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment