Skip to content

Instantly share code, notes, and snippets.

@acidg
acidg / tmux_local_install.sh
Created May 8, 2019 15:50 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8
@acidg
acidg / update.js
Created February 3, 2017 12:46
Node express application, runing a script and outputting results to browser in realtime
var cp = require("child_process");
var express = require("express");
var app = express();
var spw = null;
var lastTime = new Date();
app.get('/', function(req, res, next) {
var time = spw ? 'IN PROGRESS' : lastTime.toString();
res.send('<html>'