Skip to content

Instantly share code, notes, and snippets.

View scalabl3's full-sized avatar

Jasdeep Jaitla scalabl3

View GitHub Profile
@scalabl3
scalabl3 / gist:3161434
Created July 23, 2012 00:09
Automatic Versioning
#Current key is always the most current version of the document. Everytime it gets modified, we increase the count of versions and save current couchbase version of document #as a version with current_version - 1 appended.
#So:
#create_doc
#mydoc = { "txt" => "my first text" }
#replace_doc
#mydoc::version = 2
#mydoc::version::1 = { "txt" => "my_first_text", "auto_version" => 1, "auto_version_stamp" => "6/28/2012 20:35" }
@scalabl3
scalabl3 / Couchbase.log
Created July 7, 2012 03:21
Failed DP4 Install on Mac OS X (after previously installed 1.8.0), and deleted ~/Library/Application Support/Couchbase
Launching '/Applications/Couchbase Server.app/Contents/Resources/start-server.sh'
DYLD_LIBRARY_PATH is /Applications/Couchbase Server.app/Contents/Resources/couchbase-core:/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/lib
Eshell V5.8.4 (abort with ^G)
=PROGRESS REPORT==== 6-Jul-2012::20:16:28 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.114.0>},
{name,alarm_handler},
{mfargs,{alarm_handler,start_link,[]}},
{restart_type,permanent},