This file contains 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
/* | |
* Cluster NodeJS + Express + Hogan | |
* | |
* "dependencies": { | |
* "express": "~4.13.3", | |
* "hogan-middleware": "*" | |
* } | |
*/ | |
var cluster = require('cluster'); |
This file contains 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
/* | |
* Cluster NodeJS | |
*/ | |
var cluster = require('cluster'); | |
if (cluster.isMaster) { | |
var cpuCount = require('os').cpus().length; |
This file contains 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
/* | |
* Golang server | |
*/ | |
package main | |
import ( | |
"io" | |
"net/http" | |
) |
This file contains 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
/* | |
* Java servlet | |
* | |
* Edit "/var/lib/[tomcat]/webapps/ROOT/WEB-INF/web.xml" | |
* | |
* <?xml version="1.0" encoding="UTF-8"?> | |
* <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" | |
* xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
* xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee | |
* http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" |
This file contains 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 | |
/* | |
* Silex | |
* | |
* { | |
* "require": { | |
* "silex/silex": "~1.3" | |
* } | |
* } | |
*/ |