Skip to content

Instantly share code, notes, and snippets.

View rom1504's full-sized avatar

Romain Beaumont rom1504

View GitHub Profile
@rom1504
rom1504 / Dockerfile
Last active November 14, 2018 21:56
xmoto-docker
FROM ubuntu:16.04
RUN apt-get update -y
RUN apt-get upgrade -y
# Installing the apps
RUN apt-get install -y xmoto xvfb x11vnc
COPY run.sh run.sh
var fs = require('fs');
function parsePackets(path)
{
var files = fs.readdirSync(path);
return files
.filter(function(name) {return !(name == "DataPacket.php" || name == "Info.php");})
.map(function(name){
var file = (fs.readFileSync(path + name, 'utf8'));