Skip to content

Instantly share code, notes, and snippets.


Jonathan rondale-sc

  • Providence, Rhode Island
View GitHub Profile
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)
@text = text
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)
path as alias
return true
on error
return false
end try
end pathexists

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


##From the hosts local machine:

ssh -R1337:localhost:22 host@<shared server's ip address/hostname>
View base_template.rb
# Steven H. Allen & Co. (
# NOTICE: This template uses Postgresql exclusively for now
# To use this template:
# $ rails new <rails_app_name> -m -S -T -d postgresql
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"