- Messaging
- Baggage
Discuss what do we do with the TraceKeys in callables / runnables
| // --- Compiling --- | |
| $ wget http://download.redis.io/releases/redis-2.8.3.tar.gz | |
| $ tar xzvf redis-2.8.3.tar.gz | |
| $ cd redis-2.8.3 | |
| $ make | |
| $ make install | |
| // --- or using yum --- | |
| $ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| $ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm |
| var application_root = __dirname, | |
| express = require("express"), | |
| path = require("path"), | |
| mongoose = require('mongoose'); | |
| var app = express.createServer(); | |
| // database | |
| mongoose.connect('mongodb://localhost/ecomm_database'); |
| # | |
| # Slightly tighter CORS config for nginx | |
| # | |
| # A modification of https://gist.github.com/1064640/ to include a white-list of URLs | |
| # | |
| # Despite the W3C guidance suggesting that a list of origins can be passed as part of | |
| # Access-Control-Allow-Origin headers, several browsers (well, at least Firefox) | |
| # don't seem to play nicely with this. | |
| # |
| # DO NOT RESPOND TO REQUESTS OTHER THAN yourdomain.com | |
| server { | |
| listen 80 default; | |
| server_name _; | |
| return 444; | |
| } | |
| # FILE UPLOADS | |
| server { | |
| listen 80; |
| <?PHP | |
| /* | |
| * PHP upload for Gyazo - v1.2.1 - 3/13/2011 | |
| * http://benalman.com/news/2009/10/gyazo-on-your-own-server/ | |
| * | |
| * Copyright (c) 2011 "Cowboy" Ben Alman | |
| * Licensed under the MIT license | |
| * http://benalman.com/about/license/ | |
| */ |
| define(function(){ | |
| var instance = null; | |
| function MySingleton(){ | |
| if(instance !== null){ | |
| throw new Error("Cannot instantiate more than one MySingleton, use MySingleton.getInstance()"); | |
| } | |
| this.initialize(); | |
| } |