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 jsdom = require('jsdom'), | |
request = require('request'), | |
url = require('url'), | |
npm = require("npm"), | |
redis = require("redis"); | |
var client = redis.createClient(); | |
var configObject = { | |
"dev": false, |
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 ConnectionPool = function (connection) { | |
this.connection = connection; | |
this.queue = []; | |
this.counter = 0; | |
this.running = false; | |
}; | |
ConnectionPool.prototype.start = function () { | |
var self = this; | |
if (!this.running) { |
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
root@research:~/nodechecker-engine# docker ps -a | |
ID IMAGE COMMAND CREATED STATUS PORTS | |
f4748f971abd apocas/nodechecker:latest bash -c ulimit -m 30 9 minutes ago Exit 0 | |
25ccf9351662 apocas/nodechecker:latest bash -c ulimit -m 30 10 minutes ago Exit 137 | |
root@research:~/nodechecker-engine# docker start f4748f971abd | |
Error: No such container: f4748f971abd | |
############################ | |
NOW USING FULL IDS (SAME RESULT) |
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 csv = require('ya-csv'), | |
github = require('octonode'); | |
var client = github.client({ | |
username: 'apocas', | |
password: 'xxxxxxxx' | |
}); | |
var reader = csv.createCsvFileReader('lxjs.csv', {'columnsFromHeader':true, 'separator': ','}); |
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
#include "DHT.h" | |
#define DHTPIN 8 | |
#define DHTTYPE DHT11 | |
DHT dht(DHTPIN, DHTTYPE); | |
void setup() { |
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
//fetching/scraping'ish the VNC token for a VM | |
request.post({ | |
'url': host + '/login', | |
'auth': { | |
'user': username, | |
'pass': password, | |
'sendImmediately': true | |
} | |
}, function(err, res, body) { |
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
#!/bin/bash | |
#Nodejs v4.x needs gcc v4.8, Centos 6 comes with gcc v.4.4. | |
#devtools-2 comes already bundled with v4.8 | |
wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo | |
yum install -y devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++ | |
scl enable devtoolset-2 bash | |
wget https://nodejs.org/dist/latest/node-v4.0.0-linux-x64.tar.gz | |
tar -zxvf node-v4.0.0-linux-x64.tar.gz |
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
const tf = require('@tensorflow/tfjs-node') | |
//const tf = require('@tensorflow/tfjs-node-gpu') | |
const cocossd = require('@tensorflow-models/coco-ssd'); | |
const fs = require('fs'); | |
const gm = require('gm'); | |
var path = 'image.jpg'; |
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
#include <LiquidCrystal.h> | |
#define pinDriverDoor 30 | |
#define pinPassengerDoor 31 | |
#define pinRearRightDoor 32 | |
#define pinRearLeftDoor 33 | |
#define pinRearDoor 34 | |
#define pinOil 35 | |
#define pinWater 36 | |
#define pinWasher 37 |
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
strings '/Applications/Docker.app/Contents/MacOS/Docker Desktop.app/Contents/Resources/app.asar' | grep 'Pedro Dias' -a3 -b3 |
OlderNewer