a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
// | |
// Usage: require('./pid')("myapp"); | |
// | |
var fs = require('fs'); | |
module.exports = function(appname){ | |
process.title = appname; | |
var PID_FILE = "/usr/local/var/run/"+process.title+".pid"; |
// some modified async work based on prior by necolas | |
(function(d){ | |
var js, | |
fjs = d.getElementsByTagName('script')[0], | |
frag = d.createDocumentFragment(), | |
add = function(url, id) { | |
if (d.getElementById(id)) {return;} | |
js = d.createElement('script'); | |
js.src = url; | |
id && (js.id = id); |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Mikhail Davydov | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
#Steps | |
pkgin install couchdb | |
svccfg import /opt/local/share/smf/manifest/couchdb.xml | |
svcadm enable couchdb | |
#Test | |
curl http://127.0.0.1:5984/ | |
{"couchdb":"Welcome","version":"1.0.1"} |
From 9241b751f9b42d970844fdc62fe84a01aa6d5203 Mon Sep 17 00:00:00 2001 | |
From: Ryan Dahl <ry@tinyclouds.org> | |
Date: Wed, 6 Oct 2010 14:57:46 -0700 | |
Subject: [PATCH] Raw string access | |
--- | |
include/v8.h | 26 +++++++++ | |
src/api.cc | 12 ++++ | |
src/objects.cc | 65 ++++++++++++++++++++++ | |
src/objects.h | 5 ++ |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
/** | |
* Based on node-uuid.js http://gist.github.com/393456 | |
* | |
* Generates a new UUID and passes it to the given callback function. | |
* | |
* Calls uuid.sh - make your own depending on your system. I followed an example here: http://www.redleopard.com/2010/03/bash-uuid-generator/ | |
* | |
* Callback signature is function(err, uuid). | |
*/ | |
exports.create_uuid = (function() { |