Skip to content

Instantly share code, notes, and snippets.

View hugosp's full-sized avatar
🦄
Coding code.

Hewgo hugosp

🦄
Coding code.
View GitHub Profile

‎‎​

sshfs -o cache=yes -o kernel_cache -o large_read -o Ciphers=arcfour -o Compression=no -o ServerAliveCountMax=3 -o ServerAliveInterval=15 -o reconnect -C -o workaround=all -o idmap=user remoteuser@server:/remote/directory/ /media/mountpoint
@hugosp
hugosp / app.js
Created April 4, 2016 22:37
Minimal express-ws broadcast to all clients
var express = require('express');
var expressWs = require('express-ws');
var expressWs = expressWs(express());
var app = expressWs.app;
app.use(express.static('public'));
var aWss = expressWs.getWss('/');
app.ws('/', function(ws, req) {