Skip to content

Instantly share code, notes, and snippets.

View dynjo's full-sized avatar

Jan Jones dynjo

View GitHub Profile
@naoty
naoty / routes_csv.rake
Created October 4, 2012 05:51
Print out defined routes into csv
require 'csv'
namespace :routes do
desc 'Print out defined routes into csv, with TARGET and PATTERN'
task :csv do |task|
routes_task = Rake::Task['routes'].invoke.first
routes = routes_task.call
target = ENV['TARGET'] || 'tmp/routes.csv'
CSV.open(target, 'wb') do |csv|
@putermancer
putermancer / gist:591964
Created September 22, 2010 16:01
Set up a local solr instance on mac
# Setting up a local solr instance on a mac
# install solr with homebrew
brew install solr
# create the base solr index directory
mkdir -p /data/solr
# make sure you can write to the solr logs
sudo chown -R `whoami` /usr/local/Cellar/solr/