Skip to content

Instantly share code, notes, and snippets.

View jordanandree's full-sized avatar

Jordan Andree jordanandree

View GitHub Profile
require 'rack-rewrite'
DOMAIN = 'www.production-hacks.com' # also works with non-www url such as 'google.com'
# Redirect to the www version of the domain in production
use Rack::Rewrite do
r301 %r{.*}, "http://#{DOMAIN}$&", :if => Proc.new {|rack_env|
rack_env['SERVER_NAME'] != DOMAIN && ENV['RACK_ENV'] == "production"
}
end
@mixin base {
float: left;
margin-left: 2%;
&:first-child {
margin-left: 0;
}
}
@mixin grid_twelve {
@include base;
body {
margin-top: 80px;
}
#banner-wrapper {
display: block !important;
}
#navigation-top { position: fixed; top: 0; left: 0; z-index: 5; }
#main-navigation {
@jordanandree
jordanandree / README.md
Created March 1, 2017 18:20 — forked from magnetikonline/README.md
Setting Nginx FastCGI response buffer sizes.