This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* from http://s3.wordpress.com/wp-content/themes/pub/depo-masthead/style.css */ | |
.wp-caption { | |
border: 1px solid #ddd; | |
text-align: center; | |
background-color: #f3f3f3; | |
padding-top: 4px; | |
-moz-border-radius: 3px; | |
-khtml-border-radius: 3px; | |
-webkit-border-radius: 3px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% form_for setup_contact(@contact), :html => { :multipart => true } do |contact_form| -%> | |
<p> | |
<%= contact_form.label :first_name %><br /> | |
<%= contact_form.text_field :first_name %> | |
</p> | |
<p> | |
<%= contact_form.label :last_name %><br /> | |
<%= contact_form.text_field :last_name %> | |
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DS_Store | |
*.csv | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
include AuthenticateUser | |
before_filter :authenticate_user! | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$gw-column: 58px; // Column Width | |
$gw-gutter: 24px; // Gutter Width | |
@import 'bourbon'; | |
@import 'flutie'; | |
@import 'theme'; | |
@import 'layout'; | |
@import 'extensions/compass'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream app_server { | |
server unix:/var/applications/<%= APP_NAME %>/current/tmp/sockets/unicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name www.<%= HOST %>; | |
rewrite ^/(.*) http://<%= HOST %>/$1 permanent; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.join(File.dirname(__FILE__), 'deploy/nginx') | |
require File.join(File.dirname(__FILE__), 'deploy/log') | |
default_run_options[:pty] = true | |
set :ssh_options, { :forward_agent => true } | |
set :application, "appname" | |
set :repository, "git@giturl" | |
set :scm, :git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
match "/upvote/:posting_id/:candidate_id" => "votes#upvote", :as => :upvotes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream app { | |
server unix:/srv/app/current/tmp/sockets/unicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name www.app.com; | |
rewrite ^/(.*) http://app.com/$1 permanent; | |
} | |
server { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Installation: | |
# | |
# Clone Molly & add her to your crontab | |
# | |
# mkdir -p $HOME/bin && cd $HOME/bin && git clone git://gist.github.com/1321407.git molly | |
# cat <(crontab -l) <(echo "0 * * * * $HOME/bin/molly/molly.sh >/dev/null 2>&1") | crontab - | |
# | |
# Note: the /dev/null piece in the crontab just ensures that crontab won't send an email. |