Skip to content

Instantly share code, notes, and snippets.

View sofer's full-sized avatar

D Sofer sofer

View GitHub Profile
@sofer
sofer / bootstrap.html
Last active August 29, 2015 13:56
Twitter Bootstrap theme template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Theme Template for Bootstrap</title>
<!-- Bootstrap core CSS -->
@sofer
sofer / foundation.html
Last active August 29, 2015 13:56
Zurb Foundation Welcome page using cdnjs
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Foundation | Welcome</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/foundation/5.1.1/css/foundation.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.7.1/modernizr.min.js" ></script>
</head>
<body>
@sofer
sofer / bootstrap.sh
Last active December 19, 2015 06:19
Bootstrap an Amazon S3 instance
echo "sudo apt-get install -y git-core"
sudo apt-get install -y git-core
echo "wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh"
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
echo "heroku login"
heroku login
echo "ssh-keygen -t rsa"
ssh-keygen -t rsa
echo "heroku keys:add"
heroku keys:add
# Rails 3 application template
# Usage: rails new app -JOT -m http://gist.github.com/460217.txt
# where J=no Prototype, O=no ActiveRecord, T=no TestUnit
# see http://mongoid.org/docs/installation/
# see also http://asciicasts.com/episodes/201-bundler
# see also http://github.com/josevalim/inherited_resources
# see also http://github.com/plataformatec/devise
# see also http://github.com/indirect/rails3-generators
mongo = yes? "Run MongoDB?"