Skip to content

Instantly share code, notes, and snippets.

View tsmango's full-sized avatar

Tom Mango tsmango

View GitHub Profile
<!-- Place this before your </body> tag. -->
<script src="http://s0.railsrumble.com/banner.js" type="text/javascript"></script>
The Rails Rumble's screenshot utility will access your
official *.r13.railsrumble.com URL, but will also append
a special `screenshot` parameter for you to detect.
Example:
http://my-app.r13.railsrumble.com/?screenshot=true
To override your entry's screenshot, detect that parameter,
and serve an alternate HTML page.
source 'https://rubygems.org'
gem 'rails', '3.2.8'
gem 'sqlite3'
gem 'capistrano'
gem 'jquery-rails'
group :assets do
gem 'sass-rails', '~> 3.2.3'
mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && curl http://railsrumble.com.s3.amazonaws.com/rumblebot.pub >> ~/.ssh/authorized_keys
mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && curl http://railsrumble.com.s3.amazonaws.com/rumblebot.pub >> .ssh/authorized_keys
@tsmango
tsmango / stackscript.sh
Created October 8, 2012 15:14
2012 Rails Rumble - "Mini Stack" - StackScript
#!/bin/bash
source <ssinclude StackScriptID="1">
logfile="/root/log.txt"
RUBY_VERSION='ruby-1.9.3-p194'
RUBYGEMS_VERSION='1.8.24'
export logfile
@tsmango
tsmango / stackscript.sh
Created October 8, 2012 15:13
2012 Rails Rumble - "Short Stack" - StackScript
#!/bin/bash
source <ssinclude StackScriptID="1">
# <UDF name="db_password" Label="MySQL root Password" />
# <UDF name="db_name" Label="Create Database" default="railsrumble_production" example="Production Database Name" />
logfile="/root/log.txt"
RUBY_VERSION='ruby-1.9.3-p194'
@tsmango
tsmango / stackscript.sh
Created October 7, 2012 21:13
2012 Rails Rumble - "Full Stack, Deployment Ready" - StackScript
#!/bin/bash
source <ssinclude StackScriptID="1">
# <UDF name="db_password" Label="MySQL root Password" />
# <UDF name="db_name" Label="Create Database" default="railsrumble_production" example="Production Database Name" />
logfile="/root/log.txt"
RUBY_VERSION='ruby-1.9.3-p194'
@tsmango
tsmango / deploy.rb
Last active November 6, 2015 21:22
Rails Rumble 2013 - Official Linode StackScript - Capistrano Deployment Recipe
require 'bundler/capistrano'
# This capistrano deployment recipe is made to work with the optional
# StackScript provided to all Rails Rumble teams in their Linode dashboard.
#
# After setting up your Linode with the provided StackScript, configuring
# your Rails app to use your GitHub repository, and copying your deploy
# key from your server's ~/.ssh/github-deploy-key.pub to your GitHub
# repository's Admin / Deploy Keys section, you can configure your Rails
# app to use this deployment recipe by doing the following:
#container #main #content #roster .roster-item #images {
float: left;
width: 202px;
}
#container #main #content #roster .roster-item #images li {
float: left;
margin-bottom: 15px;
}