Order of Operations
- Handle post Mountain Lion upgrade if you had Homebrew
- Install/Upgrade Couchbase Server
- Install Homebrew (if you don't have it already)
- Install latest XCode
- Install XCode Command Line Tools
- Install libcouchbase C library
| var cluster = require('cluster'); | |
| var http = require('http'); | |
| var numCPUs = require('os').cpus().length; | |
| if (cluster.isMaster) { | |
| // Fork workers. | |
| for (var i = 0; i < numCPUs; i++) { | |
| cluster.fork(); | |
| } | |
| cluster.on('exit', function(worker, code, signal) { |
Order of Operations
| FROM ubuntu | |
| MAINTAINER Dustin Sallings "dustin@spy.net" | |
| ADD http://cbfs-ext.hq.couchbase.com/couchbase-dist/couchbase-server-enterprise_2.2.0_x86_64.deb /tmp/couchbase-server-enterprise_2.2.0_x86_64.deb | |
| RUN apt-get update | |
| RUN apt-get install -y librtmp0 python-httplib2 | |
| RUN dpkg -i /tmp/couchbase-server-enterprise_2.2.0_x86_64.deb | |
| RUN rm /tmp/couchbase-server-enterprise_2.2.0_x86_64.deb | |
| RUN /etc/init.d/couchbase-server stop |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
On Mac I highly recommend just permanently increasing the max number of file descriptors allowed (unlimited is no longer a valid parameter):
$ cd /etc
$ vi launchd.conf
$ limit maxfiles 1000000 1000000| <!-- Include the PubNub Library --> | |
| <script src="https://cdn.pubnub.com/pubnub.min.js"></script> | |
| <!-- Instantiate PubNub --> | |
| <script type="text/javascript"> | |
| var PUBNUB_demo = PUBNUB.init({ | |
| publish_key: 'demo', | |
| subscribe_key: 'demo' | |
| }); |
| 'system': | |
| [ | |
| { | |
| 'type': 'text', | |
| 'text': "You are Claude Code, Anthropic's official CLI for Claude.", | |
| 'cache_control': {'type': 'ephemeral'} | |
| }, | |
| { | |
| 'type': 'text', | |
| 'text': 'You are an interactive CLI tool that helps users with software engineering tasks. |