This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~> siege -c 100 -t 2m http://localhost:3030 | |
| ** SIEGE 2.70 | |
| ** Preparing 100 concurrent users for battle. | |
| The server is now under siege... | |
| Lifting the server siege... done. | |
| Transactions: 3407277 hits | |
| Availability: 100.00 % | |
| Elapsed time: 119.73 secs | |
| Data transferred: 38.99 MB | |
| Response time: 0.00 secs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~> siege -c 100 -t 2m http://localhost:3030 | |
| ** SIEGE 2.70 | |
| ** Preparing 100 concurrent users for battle. | |
| The server is now under siege... | |
| Lifting the server siege... done. | |
| Transactions: 5094455 hits | |
| Availability: 100.00 % | |
| Elapsed time: 119.01 secs | |
| Data transferred: 58.30 MB | |
| Response time: 0.00 secs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HTTP/1.1 200 OK | |
| Server: nginx | |
| Date: Thu, 22 Mar 2012 13:28:14 GMT | |
| Content-Type: application/json | |
| Transfer-Encoding: chunked | |
| Connection: keep-alive | |
| Keep-Alive: timeout=20 | |
| X-Powered-By: ql.io/node.js v0.6.8 | |
| vary: accept-encoding | |
| Transfer-Encoding: chunked |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/cfapp$ curl -v http://cfapp.qlio.cloudfoundry.me/console | |
| * About to connect() to cfapp.qlio.cloudfoundry.me port 80 (#0) | |
| * Trying 192.168.77.128... connected | |
| * Connected to cfapp.qlio.cloudfoundry.me (192.168.77.128) port 80 (#0) | |
| > GET /console HTTP/1.1 | |
| > User-Agent: curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15 | |
| > Host: cfapp.qlio.cloudfoundry.me | |
| > Accept: */* | |
| > | |
| < HTTP/1.1 200 OK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var options = { | |
| cluster: false, | |
| port: process.env.VCAP_APP_PORT || 3000, | |
| monPort: 3001, | |
| config: cwd + '/config/dev.json', | |
| tables: cwd + '/tables', | |
| routes: cwd + '/routes', | |
| xformers: cwd + '/config/xformers.json', | |
| disableConsole: true, | |
| disableQ: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| repeat while pending > 0 | |
| for each statement | |
| if task represented by the statement has no dependencies | |
| pending++; | |
| execute the task | |
| on completion | |
| pending--; | |
| notify dependencies to update met dependencies | |
| repeat this algo | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var _ = require('underscore'), | |
| http = require('http'), | |
| URI = require('uri'), | |
| async = require('async'); | |
| var sendReq = function (s, cb) { | |
| // send a HTTP req, and pass error or result to the function arg | |
| // content omitted for brevity | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var _ = require('underscore'), | |
| http = require('http'), | |
| URI = require('uri'), | |
| async = require('async'); | |
| var sendReq = function (s, cb) { | |
| // send a HTTP req, and pass error or result to the function arg | |
| // content omitted for brevity | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resp = insert into ebay.trading.placeoffer (siteId, itemId, offer, action, quantity) | |
| values ("{siteId}", "{itemId}", "{offer}", "{action}", "{quantity}"); | |
| return resp via route | |
| "/offers" using method post; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <PlaceOfferRequest xmlns="urn:ebay:apis:eBLBaseComponents"> | |
| <ErrorLanguage>en_US</ErrorLanguage> | |
| {{#params}} | |
| <ItemID>{{itemId}}</ItemID> | |
| {{/params}} | |
| {{#params}} | |
| <EndUserIP>{{remoteAddress}}</EndUserIP> | |
| {{/params}} | |
| <Offer> |