Skip to content

Instantly share code, notes, and snippets.

Avatar

Kaz Walker KazW

View GitHub Profile
View db_store.rb
require 'openid/store/interface'
module OpenID::Store
class Association
include Mongoid::Document
field :secret, :type => Binary
def from_record
OpenID::Association.new(handle, secret.to_s, issued, lifetime, assoc_type)
end
@KazW
KazW / es.sh
Created May 15, 2012 — forked from aaronshaf/es.sh
Install ElasticSearch on Ubuntu 11.04
View es.sh
cd ~
sudo apt-get update
sudo apt-get install unzip curl python-software-properties -y
wget https://raw.github.com/flexiondotorg/oab-java6/master/oab-java6.sh -O oab-java6.sh
chmod +x oab-java6.sh
sudo ./oab-java6.sh
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin -y
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.7.tar.gz -O elasticsearch.tar.gz