Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
| #!/usr/bin/env ruby | |
| # Convert Trac DB Wiki pages to Markdown source files | |
| # This script is based on http://github.com/seven1m/trac_wiki_to_github which | |
| # converted all pages from a Trac DB to GitHub Wiki format (as Textile). | |
| # | |
| # I made two changes: | |
| # - uses MarkDown format instead | |
| # - uses the sqllite3-ruby gem which does not need Ruby 1.9 |