Skip to content

Instantly share code, notes, and snippets.

@stringfellow
stringfellow / tms2osm.py
Created May 11, 2012 11:02
TMS to OSM directory conversion script
import os
import shutil
import argparse
import commands
from datetime import datetime
try:
import progressbar as pb
except ImportError:
@stringfellow
stringfellow / watch.rb
Created February 10, 2012 13:32
Watch for file changes and refresh your browser automatically
#!/usr/bin/env ruby
# watch.rb by Brett Terpstra, 2011 <http://brettterpstra.com>
# with credit to Carlo Zottmann <https://github.com/carlo/haml-sass-file-watcher>
# edited by Dave Arter to refresh Chrome using code suggested in Brett's original blog post: <http://brettterpstra.com/watch-for-file-changes-and-refresh-your-browser-automatically/>
# edited more by Steve Pike to not do any of that, and instead recompile coffee.
trap("SIGINT") { exit }
if ARGV.length < 1
puts "Usage: #{$0} watch_folder"
call "C:\OSGeo4w64\bin\o4w_env.bat"
IF NOT EXIST C:\mapproxy (
easy_install virtualenv
mkdir C:\mapproxy
cd C:\mapproxy
virtualenv --system-site-packages env
env\Scripts\activate
pip install pyreadline MapProxy ipython lxml
mapproxy-util create -t base-config mapactionproxy
cd mapactionproxy