Skip to content

Instantly share code, notes, and snippets.

TODO
make folder /html and /html/up
copy file socket.io-stream.js to html
run node app.js
{}
()()()++
()()(+++
NODE
var express = require('express');
#!/bin/bash/
# Install node
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.1.0/dist/leaflet.css"
integrity="sha512-wcw6ts8Anuw10Mzh9Ytw4pylW8+NAD4ch3lqm9lzAsTxg0GFeJgoAtxuCLREZSC5lUXdVyo/7yfsqFjQ4S+aKw=="
crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.1.0/dist/leaflet.js"
let app = require('express')();
let server = require('http').Server(app);
let io = require('socket.io')(server);
let isRoot = require('is-root');
const raspi = require('raspi');
const Serial = require('raspi-serial').Serial;
let serial, sock, succes, error;
let current, tmp, line = "";
FROM davidsblog/node-mongo:latest
RUN apt-get update
RUN apt-get install git
RUN git clone git://github.com/zoutepopcorn/node-login.git node-login
RUN cd node-login
RUN npm install
RUN npm install n -g
RUN n stable
FROM marcelmaatkamp/pybombs-gnuradio
# apt-get
RUN apt-get update
RUN apt-get install -y python-numpy python-scipy python-scapy
RUN pybombs config default_prefix default_prx
RUN pybombs install gr-gsm
RUN export uid=1000 gid=1000 && \
mkdir -p /home/developer && \
FROM marcelmaatkamp/gnuradio
# apt-get
RUN apt-get update && apt-get upgrade
RUN apt-get install -y python-numpy python-scipy python-scapy
RUN apt-get install git
RUN apt-get install python-pip
RUN apt-get install gnuradio
RUN pip install PyBOMBS
RUN pybombs prefix init /usr/local -a default_prx
[{"map it":"Get Map","netid":"24:65:11:AA:A8:E8","ssid":"FRITZ!Box Fon WLAN 7360","comment": "","name": "","type":"infra","freenet":"?","paynet":"?","firsttime":"2013-03-05 16:54:12","lasttime":"2017-05-01 23:04:06","flags": "","wep":"2","trilat":52.28469467,"trilong":5.51925516,"lastupdt":20170501230535,"channel":1,"bcninterval": "","qos":1,"userfound":"N"},
{"map it":"Get Map","netid":"00:1C:10:6E:CE:9F","ssid":"linksys","comment": "","name": "","type":"infra","freenet":"?","paynet":"?","firsttime":"2015-04-14 13:19:43","lasttime":"2017-08-03 07:13:22","flags": "","wep":"Y","trilat":52.28736496,"trilong":5.51939154,"lastupdt":20170803071335,"channel":6,"bcninterval": "","qos":7,"userfound":"N"},
{"map it":"Get Map","netid":"DA:A1:19:2A:1D:5F","ssid":" ","comment": "","name": "","type":"????","freenet":"?","paynet":"?","firsttime":"2016-08-13 13:13:48","lasttime":"2016-09-05 09:52:02","flags": "","wep":"?","trilat":52.27633286,"trilong":5.51999903,"lastupdt":20160905095211,"channel": "","bcninterval": "","qo
import wifi
wifi.init()
woezel.install('zzz')
@zoutepopcorn
zoutepopcorn / Node.js
Created August 10, 2017 15:36
Node.js
const fs = require('fs');
const download = require('download');
const htmlparser = require("htmlparser2");
const get = require('simple-get');
const pUrl = require('parse-url');
const url = process.argv[2];
const pu = pUrl(url);
const fsPath = require('fs-path');
let base = `${pu.protocol}://${pu.resource}` ;