node/index.js
var async = require('async')
async.each(["hello","world"],
function(v) {
console.log(v)
},
function(e) {
| #!/usr/bin/node | |
| /** | |
| * Import dependencies | |
| */ | |
| var exec = require('child_process').exec | |
| var nw = require('nodewebkit').findpath | |
| var path = require('path') | |
| /** |
| var numberOfUsers = 500 | |
| function harvest() { | |
| $("#search").scrollTop($("#search")[0].scrollHeight); | |
| var bs = $('*[data-capture="noiseClicked"]') | |
| var len = bs.length | |
| console.log(len) | |
| if ( len > numberOfUsers) { | |
| follow() | |
| } else { | |
| setTimeout(harvest, Math.floor(Math.random() * 500) + 1); |
| setInterval(function() { | |
| var connectBtns = document.getElementsByClassName('bt-request-buffed'); | |
| for(var i =0; i < connectBtns.length; i++) { | |
| connectBtns[i].click() | |
| } | |
| }, 500); |
node/index.js
var async = require('async')
async.each(["hello","world"],
function(v) {
console.log(v)
},
function(e) {
| # Install Node.js | |
| curl -sL https://deb.nodesource.com/setup | sudo bash - | |
| apt-get install -y nodejs gcc g++ make | |
| # Install Docker | |
| echo "deb http://http.debian.net/debian wheezy-backports main" >> /etc/apt/sources.list | |
| apt-get -y update | |
| apt-get install -y -t wheezy-backports linux-image-amd64 | |
| curl -sSL https://get.docker.com/ | sh |
| #cloud-config | |
| hostname: coreos1 | |
| users: | |
| - name: wblankenship | |
| passwd: $6$rounds=4096$/iBafoYauGnV$nO3WK2UKET9eKOXtkW73AkAk4oUL98AVjFUQl2jT1nPAy2m/J6ZJUGFnsMC8OCatl.QGRRPW9qbAmQx7MqVzU0 | |
| groups: | |
| - sudo | |
| - docker |
| #!/bin/sh | |
| set -e | |
| ### BEGIN INIT INFO | |
| # Provides: {{SERVICE_NAME}} | |
| # Required-Start: $all | |
| # Required-Stop: $all | |
| # Should-Start: | |
| # Should-Stop: | |
| # Default-Start: 2 3 4 5 |
Debian Wheezy and other systems using the SysV style init with extend LSB Headers as defined in Chapter 20 of the LSB 3.1 specification