Skip to content

Instantly share code, notes, and snippets.

View daemonza's full-sized avatar

Werner Gillmer daemonza

View GitHub Profile
@daemonza
daemonza / gist:3878849
Created October 12, 2012 11:47
Script to make uploads of tcx files from garmin connect easier
#!/usr/bin/env bash
# Copy the script into the directory where all your tcx files
# are located. Run it and then upload to Stava from the upload directory.
# Coded by Werner Gillmer <[email protected]>
echo "Creating sorting directories"
nrFiles=`ls -l ./*.tcx | wc -l`
nrDirs=$(($nrFiles/24))
@daemonza
daemonza / pound.cfg
Created March 6, 2012 08:00
Pound SSL redirect configuration file
######################################################################
# Pound configuration to route SSL requests to HAproxy and then let
# HAproxy load balance the rest of the services.
#
## global options:
User "www-data"
Group "www-data"
#RootJail "/chroot/pound"
@daemonza
daemonza / haproxy.cfg
Created March 6, 2012 07:57
HAproxy virtual site load balancing
# This configuration use acl's to distinguish between url's passwd and then route
# them to the right backend servers. For the backend servers to handle it correctly, you
# need to setup virtual hosting there as well, on whatever you use, tomcat, nginx, apache, etc.
# For this to work with SSL, put pound before HAproxy and use a configuration file similar to
# https://gist.github.com/1984822 to get it working
global
log 127.0.0.1 local0
log 127.0.0.1 local1 info
maxconn 4096