Create a websites
user.
sudo adduser --disabled-password --home /src/websites websites
Login and install dropbox.
sudo -s su - websites
<?php | |
define('START_TIME', microtime(TRUE)); | |
register_shutdown_function(function() { | |
print dump(round(microtime(TRUE) - START_TIME, 3) . ' seconds'); | |
print dump(round(memory_get_peak_usage() / 1024) . " kb peak usage"); | |
print dump(DB::$q); | |
}); |
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
// Node.js CheatSheet. | |
// Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
// Download: http://nodejs.org/download/ | |
// More: http://nodejs.org/api/all.html | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html | |
// Use absolute URLs to navigate to anything not in your Router. | |
// Only need this for pushState enabled browsers | |
if (Backbone.history && Backbone.history._hasPushState) { | |
// Use delegation to avoid initial DOM selection and allow all matching elements to bubble | |
$(document).delegate("a", "click", function(evt) { | |
// Get the anchor href and protcol | |
var href = $(this).attr("href"); | |
var protocol = this.protocol + "//"; |
// | |
// toplevel.js | |
// | |
// TopLevel enables you to template your HTML, CSS, and Javascript at the Top Level | |
// (c) 2014 chris mckenzie. see LICENSE for more details. | |
// https://github.com/kristopolous/TopLevel for the latest version. | |
// | |
// Parts of this code use Jeremy Ashkenas' underscore library, available at | |
// https://github.com/jashkenas/underscore and protected by the license specified | |
// therein. |
test is done |
var request = require('supertest'), | |
should = require('should'), | |
app = require('../server'); | |
var Cookies; | |
describe('Functional Test <Sessions>:', function () { | |
it('should create user session for valid user', function (done) { | |
request(app) | |
.post('/v1/sessions') |
{ | |
// -------------------------------------------------------------------- | |
// JSHint Configuration, Strict Edition | |
// -------------------------------------------------------------------- | |
// | |
// This is a options template for [JSHint][1], using [JSHint example][2] | |
// and [Ory Band's example][3] as basis and setting config values to | |
// be most strict: | |
// | |
// * set all enforcing options to true |