Skip to content

Instantly share code, notes, and snippets.

process.argv.forEach(function (val, index, array) {
console.log(index + ': ' + val);
});
if(process.argv[2] == 'server'){
var dgram = require("dgram");
var server = dgram.createSocket("udp4");
server.on("message", function (msg, rinfo) {
#!/bin/sh
#Lernu esperanton :-)
wget -nc http://www.oreilly.com/programming/free/files/microservices-for-java-developers.pdf
wget -nc http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.pdf
wget -nc http://www.oreilly.com/programming/free/files/object-oriented-vs-functional-programming.pdf
wget -nc http://www.oreilly.com/programming/free/files/java-the-legend.pdf
wget -nc http://www.oreilly.com/programming/free/files/a-whirlwind-tour-of-python.pdf
wget -nc http://www.oreilly.com/programming/free/files/hadoop-with-python.pdf
wget -nc http://www.oreilly.com/programming/free/files/how-to-make-mistakes-in-python.pdf