Skip to content

Instantly share code, notes, and snippets.

View gist:5631380
<!-- Navigation -->
<nav class="top-bar">
<ul class="title-area">
<!-- Title Area -->
<li class="name">
<a href="#">
Top Bar Title
mhayes / Procfile
Created Jan 23, 2012 — forked from carlo/Procfile
Example of a Foreman/Capistrano/upstart setup
View Procfile
worker: QUEUE=* bundle exec rake environment resque:work
scheduler: bundle exec rake environment resque:scheduler
mhayes /
Created Jan 22, 2012 — forked from JeanMertz/
Ruby on Rails syntax highlight switcher for Sublime Text 2
import sublime, sublime_plugin
import os
class DetectFileTypeCommand(sublime_plugin.EventListener):
""" Detects current file type if the file's extension isn't conclusive """
""" Modified for Ruby on Rails and Sublime Text 2 """
""" Original pastie here: """
def on_load(self, view):
filename = view.file_name()
mhayes /
Created Jun 27, 2011 — forked from sstephenson/
Rackup file for Rails 2.3 apps
require File.dirname(__FILE__) + '/config/environment'
mhayes / gist:984326
Created May 21, 2011 — forked from kirs/gist:984320
broken rakefile
View gist:984326
require File.expand_path('../config/application', __FILE__)
require 'rake'
module ::Dpp
class Application
include Rake::DSL
module ::RakeFileUtils
mhayes /
Created Mar 12, 2011 — forked from danmackinlay/
init.d for supervisord for Amazon Linux AMI
# Amazon Linux AMI startup script for a supervisor instance
# chkconfig: 2345 80 20
# description: Autostarts supervisord.
# Source function library.
. /etc/rc.d/init.d/functions
You can’t perform that action at this time.