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
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 |
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
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')); |