Skip to content

Instantly share code, notes, and snippets.

@mhayes
mhayes / gist:5631380
Last active December 17, 2015 15:19 — forked from ghaida/gist:5054687
<!-- Navigation -->
<nav class="top-bar">
<ul class="title-area">
<!-- Title Area -->
<li class="name">
<h1>
<a href="#">
Top Bar Title
</a>
@mhayes
mhayes / Procfile
Created January 23, 2012 22:55 — forked from czottmann/Procfile
Example of a Foreman/Capistrano/upstart setup
worker: QUEUE=* bundle exec rake environment resque:work
scheduler: bundle exec rake environment resque:scheduler
@mhayes
mhayes / syntax_highlighting.py
Created January 22, 2012 21:31 — forked from JeanMertz/syntax_highlighting.py
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: http://pastie.org/private/kz8gtts0cjcvkec0d4quqa """
def on_load(self, view):
filename = view.file_name()
@mhayes
mhayes / config.ru
Created June 27, 2011 20:20 — forked from sstephenson/config.ru
Rackup file for Rails 2.3 apps
require File.dirname(__FILE__) + '/config/environment'
run ActionController::Dispatcher.new
@mhayes
mhayes / gist:984326
Created May 21, 2011 07:14 — forked from kirs/gist:984320
broken rakefile
require File.expand_path('../config/application', __FILE__)
require 'rake'
module ::Dpp
class Application
include Rake::DSL
end
end
module ::RakeFileUtils
@mhayes
mhayes / supervisord.sh
Created March 12, 2011 01:13 — forked from danmackinlay/supervisord.sh
init.d for supervisord for Amazon Linux AMI
#!/bin/sh
# 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
supervisorctl="/usr/bin/supervisorctl"