Skip to content

Instantly share code, notes, and snippets.

@recursive
recursive / markdown_to_prawn
Last active August 29, 2015 14:26 — forked from rjmcdonald83/markdown_to_prawn
Markdown to Prawn Parser
class TermsPdf < Prawn::Document
def initialize(application)
super()
@application = application
@listing = @application.listing
@host = @listing.organization
@guest = @application.guest_organization
font "Times-Roman"
default_leading 2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.github.mxcl.homebrew.daemontools</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/svscanboot</string>
</array>
# http://unicorn.bogomips.org/SIGNALS.html
rails_env = ENV['RAILS_ENV'] || 'production'
rails_root = ENV['RAILS_ROOT'] || "/data/github/current"
God.watch do |w|
w.name = "unicorn"
w.interval = 30.seconds # default
# unicorn needs to be run from the rails root