Skip to content

Instantly share code, notes, and snippets.

View hvirring's full-sized avatar

Jesper Hvirring Henriksen hvirring

  • Copenhagen, Denmark
View GitHub Profile
@jmreidy
jmreidy / env.sample.js
Created December 28, 2011 23:28
Pivotal to Sprintly importer
module.exports = {
pivotal: {
TOKEN: 'TOKEN'
PID: 'PID',
},
sprintly: {
USER: "USER_EMAIL",
ID: 'PRODUCT_ID',
KEY: 'API_KEY'
},
@bdeterling
bdeterling / Setup Slice with Passenger
Created December 22, 2010 16:17
Instructions I used to set up a new Ubuntu server with rvm, passenger, rails, etc
These instructions have two purposes: 1) my own notes so I can more easily set up a new machine next time; 2) help for a Rails n00b to get a machine and a project set up without having to make all the same mistakes I did.
This walks you through setting up a remote Linux server and creating a Rails 3 project locally, using Github and Capistrano to collaborate and deploy.
Local -> means on your machine which should be a Unix variant (some OS X specifics may have snuck in)
Server -> means the server
Local ->
setup a /etc/hosts entry to map the IP to a simple name, hereafter 'server'
@tpope
tpope / .gitattributes
Created October 24, 2010 20:38
Fewer conflicts in your Rails apps
Gemfile.lock merge=bundlelock
db/schema.rb merge=railsschema
# Get a sorted list of Danish zipcodes using the webservice described here
# http://www.ebst.dk/aws
#
# Install savon with: gem install savon and try it out
require 'savon'
client = Savon::Client.new "http://aws.hvm.dk/GetAddressService/GetAddressService.asmx?wsdl"
puts client.get_post_code_list.to_hash.values.first[:postal_code_list].map { |postal_code_entry| postal_code_entry[:post_code_identifier] + " " + postal_code_entry[:district_name] }.sort.join("\n")