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
$ diff Gemfile.rails40 Gemfile | |
--- Gemfile.rails40 2014-04-02 12:43:11.810808902 +0200 | |
+++ Gemfile 2014-04-02 11:19:02.754890760 +0200 | |
@@ -1,6 +1,6 @@ | |
source 'https://rubygems.org' | |
-gem 'rails', '4.0.4' | |
+gem 'rails', '3.2.17' | |
gem 'rake', '0.9.6' | |
gem 'net-sftp' |
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
<?php | |
abstract class App_Model_AbstractMapper | |
{ | |
/** | |
* @var Zend_Db_Table_Abstract | |
*/ | |
private $_dbTable; | |
/** |
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
<?php | |
abstract class App_Model_Abstract | |
{ | |
/** | |
* @var App_Model_AbstractMapper | |
*/ | |
protected $_mapper; | |
/** |
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
server { | |
# Make sites accessible from http://$sub.localhost/ | |
server_name ~^(?P<sub>.+)\.localhost$; | |
root /var/www/vhosts/$sub/public; | |
location ~* ^.+.(css|js|jpeg|jpg|gif|png|ico) { | |
expires 30d; | |
} |
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 http = require('http'); | |
var fs = require('fs'); | |
var image = fs.readFileSync('empty.gif'); | |
http.createServer(function(request, response){ | |
response.writeHead(200, {'Content-Type': 'image/gif'}); | |
response.end(image); | |
}).listen(9999); |
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
; Node.js 0.6.11 | |
ab -n 1000 -c 10 -s http://nodejs.localhost:9999/ | |
Requests per second: 1007.72 [#/sec] (mean) | |
Time per request: 9.923 [ms] (mean) | |
Time per request: 0.992 [ms] (mean, across all concurrent requests) | |
; Apache 2.2, file system | |
ab -n 1000 -c 10 -s http://bench.localhost/empty.gif |