Skip to content

Instantly share code, notes, and snippets.

Avatar

Jonathan rondale-sc

  • Providence, Rhode Island
View GitHub Profile
View base_app.rb
# Install gems
gem "haml-rails"
gem "decent_exposure"
gem "jquery-rails"
gem "sass-rails"
gem "uglifier"
gem_group :development do
gem "better_errors"
gem "binding_of_caller"
View base_template.rb
# Steven H. Allen & Co. (http://stevenhallen.com)
#
# NOTICE: This template uses Postgresql exclusively for now
#
#
# To use this template:
#
# $ rails new <rails_app_name> -m https://gist.github.com/5777772.txt -S -T -d postgresql
View steps.md

Start with a machine that is directly accessible to both parties via SSH (linode, EC2, prgmr.com, etc), and that you can add users to. DO NOT USE root!!!!

Usage

##From the hosts local machine:

ssh -R1337:localhost:22 host@<shared server's ip address/hostname>
View launch_project.applescript
set project_directory to do shell script "find ~/ ~/Source ~/Source/ruby ~/Source/ruby/webapps -maxdepth 1 -type d -name " & q & " | head -1"
on pathexists(path)
try
path as alias
return true
on error
return false
end try
end pathexists
@rondale-sc
rondale-sc / gist_tag.rb
Created Mar 22, 2012 — forked from BinaryMuse/gist_tag.rb
A Liquid tag for Jekyll sites that allows embedding Gists and showing code for non-JavaScript enabled browsers and readers.
View gist_tag.rb
require 'cgi'
require 'digest/md5'
require 'net/https'
require 'uri'
module Jekyll
class GistTag < Liquid::Tag
def initialize(tag_name, text, token)
super
@text = text