View gist:ebe16aa97da47f1e76f8
1 2 3 4 5 6 7 8 9 10
How to setup Heroku Hostname SSL with GoDaddy SSL Certificate and Zerigo DNS
Heroku recently added an exciting new 'Hostname SSL' option. This option offers the broad compatibility of IP-based SSL, but at 1/5 the price ($20 / month at the time of this writing).
The following tutorial explains how to use Heroku's new 'Hostname SSL' option on your Heroku project. Before we begin, let's list what we're using here:
 
* Heroku Hostname SSL
* GoDaddy Standard SSL Certificate
* Zerigo DNS
 
Note: I am not using the Heroku Zerigo DNS add-on, instead I have a separate Zerigo account for my DNS needs. I do this because Zerigo offers 30 hosts on free direct accounts, versus only 10 hosts on the free Heroku add-on.
View mp-strava_heatmap.xml
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="UTF-8"?>
<customMapSource>
<name>Strava Heatmap</name>
<minZoom>1</minZoom>
<maxZoom>17</maxZoom>
<tileType>png</tileType>
<url><![CDATA[http://d2z9m7k9h4f0yp.cloudfront.net/tiles/cycling/color3/{$z}/{$x}/{$y}.png?v=3]]></url>
<tileUpdate>None</tileUpdate>
<backgroundColor>#000000</backgroundColor>
<ignoreErrors>false</ignoreErrors>
View mp-os.xml
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="UTF-8"?>
<customMapSource>
<name>OS</name>
<minZoom>1</minZoom>
<maxZoom>17</maxZoom>
<tileType>png</tileType>
<url><![CDATA[http://ak.{$serverpart}.tiles.virtualearth.net/tiles/r{$q}.png?g=3218&productSet=mmOS]]></url>
<tileUpdate>None</tileUpdate>
<backgroundColor>#000000</backgroundColor>
<ignoreErrors>false</ignoreErrors>
View rubocop_pre_commit_hook
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env ruby
 
require 'english'
require 'rubocop'
 
ADDED_OR_MODIFIED = /A|AM|^M/.freeze
 
changed_files = `git status --porcelain`.split(/\n/).
select { |file_name_with_status|
file_name_with_status =~ ADDED_OR_MODIFIED
View autoexec.cfg
1 2 3 4 5 6 7 8 9
echo "== loading autoexec =="
 
echo "== sensitivity 1.5 at 2000dpi with default windows sensitivity =="
sensitivity 1.5
 
echo "== crosshair size 2500 at 1680dpi =="
cl_crosshairscale 2500
 
echo "# -console -heapsize 1572864 -nojoy -noforcemparms -noforcemaccel -noforcemspd -refresh 60 -tickrate 100 -novid #"
Something went wrong with that request. Please try again.