start new:
tmux
start new with session name:
tmux new -s myname
I was tired of Chrome eating all my laptop resources so I decided to put some limit to it with cgroup.
As I was using Ubuntu 12.04 with support for cgroup, I installed the package cgroup-bin
and add the following group to the file /etc/cgconfig.conf
:
group browsers {
cpu {
# Set the relative share of CPU resources equal to 25%
cpu.shares = "256";
}
'use strict'; | |
// simple express server | |
var express = require('express'); | |
var app = express(); | |
var router = express.Router(); | |
app.use(express.static('public')); | |
app.get('/', function(req, res) { | |
res.sendfile('./public/index.html'); |
/* | |
* Comparison of methods to list all files in a directory | |
* and subdirectories ("recursive directory walk"). | |
* | |
* gunargessner.com 2015-12-25 | |
* | |
*/ | |
var fs = require('fs'); | |
var fsPath = require('path'); | |
var _ = require('highland'); |