Skip to content

Instantly share code, notes, and snippets.

@bbinet
bbinet / pull_and_ghpimport.sh
Created May 5, 2012 12:57
pull_and_ghpimport.sh script
#!/bin/bash
directory=$1
build_cmd=$2
if [ -z "$directory" ]; then
echo "This script takes a directory path as first parameter."
exit 1
fi
if [ -z "$build_cmd" ]; then
echo "This script takes a build command as second parameter."
@bbinet
bbinet / mapproxy.yaml
Created April 12, 2012 13:09
mapproxy config that would support internal layer as source
services:
demo:
kml:
tms:
wms:
srs: ['EPSG:4326', 'EPSG:900913']
image_formats: ['image/jpeg', 'image/png']
layers:
- name: osm900913
@bbinet
bbinet / mapproxy.yaml
Created April 12, 2012 12:33
mapproxy.yaml
services:
demo:
kml:
tms:
wms:
srs: ['EPSG:4326', 'EPSG:900913']
image_formats: ['image/jpeg', 'image/png']
layers:
- name: osm
@bbinet
bbinet / gist:1400782
Created November 28, 2011 15:30
bash function to checkout svn:externals when using git-svn
function git-co-externals() {
(
cd $(git rev-parse --show-toplevel) && git svn show-externals | grep "^/" |
while read a b c
do
# remove first character which is a '/'
local=${a:1}
if [ -z $c ]
then
url=$b