Skip to content

Instantly share code, notes, and snippets.

@lakim
lakim / box_view_client.rb
Last active August 29, 2015 14:01
Box View API Client
module BoxView
class SessionError < StandardError; end
class GetError < StandardError; end
class RetryError < StandardError
attr_reader :retry_after
def initialize(retry_after)
@retry_after = retry_after
end
@lakim
lakim / gist:1506621
Created December 21, 2011 16:20 — forked from btoone/gist:1151748
Ubuntu Packages for Rails Hosting

One command to rule them all

sudo aptitude install apache2 apache2-prefork-dev autoconf bison build-essential \
clang curl dnsutils git-core imagemagick libc6-dev libcurl4-openssl-dev libffi-dev \
libmagickwand-dev libmysqlclient16 libmysqlclient16-dev libreadline6-dev libsqlite3-0 \
libsqlite3-dev libssl-dev libxml2 libxml2-dev libxslt-dev libxslt1.1 libxslt1-dev \
libyaml-dev mysql-client mysql-server openssl sqlite3 wget zlib1g zlib1g-dev 
@lakim
lakim / ubuntu-lucid-setup-rails.md
Created December 21, 2011 16:19 — forked from btoone/ubuntu-lucid-setup-rails.md
Ubuntu Lucid Setup Guide for Rails

This note will walk you though setting up and securing a Ubuntu 10.04 LTS then deploying a Rails application with mulit-stage deployment.

TODO:

  • Add section for NGINX setup

Server Setup