Skip to content

Instantly share code, notes, and snippets.

View Unitech's full-sized avatar

Alexandre Strzelewicz Unitech

View GitHub Profile
unitech@zion:~/Desktop$ netstat -tulpn | grep LISTEN
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 8243/node
tcp 0 0 127.0.0.1:5556 0.0.0.0:* LISTEN 6786/exe
tcp 0 0 192.168.0.101:5556 0.0.0.0:* LISTEN 6786/exe
tcp 0 0 172.21.0.1:5556 0.0.0.0:* LISTEN 6786/exe
tcp 0 0 172.18.0.1:5556 0.0.0.0:* LISTEN 6786/exe
```
python3 bin/02_periodicity.py '{
"data": [0.1, 0.7, 0.2, 0.8, 0.1, 0.0, 0.1, 0.1, 0.8, 0.4, 0.3, 0.1, 0.2, 0.4, 0.6],
"option": {
"percent": 0.8
}
}'
{"valid": true, "reason": {"periodic": true, "period": 2, "trend": false, "other": ""}}
```
{
baseboard: {
manufacturer: 'Apple Inc.',
model: 'MacBookPro14,3',
version: '1.0'
},
cpu: {
brand: 'Intel®',
model: 'Core™ i7-7700HQ',
speed: '2.80',
oauth_1 | 2019-04-19T22:01:55: PM2 log: App [app:0] exited with code [1] via signal [SIGINT]
oauth_1 | 2019-04-19T22:01:55: PM2 log: App [app:0] starting in -fork mode-
oauth_1 | 2019-04-19T22:01:55: PM2 log: App [app:0] online
oauth_1 | Trying to etablish connection to mongodb
oauth_1 | (node:73) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
oauth_1 | Connection to database ready, waiting for configuration ...
oauth_1 | Configuration loaded from database
oauth_1 | (node:73) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.
oauth_1 | [oAuth] Ready 3100
oauth_1 | Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
this.io.bucket.create({
name: 'PM2 Plus Monitoring'
}).then(res => {
const bucket = res.data
this.io.bucket.billing.startTrial(bucket._id, {
plan: 'plus_8'
}).then(res => {
upstream django {
# server unix:///path/to/your/mysite/mysite.sock; # for a file socket
server 127.0.0.1:8001; # for a web port socket (we'll use this first)
}
# configuration of the server
server {
# the port your site will be served on
listen 8000;
# the domain name it will serve for
[72.32,72.02,72.88,73.25,72.37,79.61,68.78,68.16,73.77,61.22,58.23,61.69,77.29,73.33,76.39,74.94,65.74,61.62,59.02,58.85,55.78,59.57,58.92,57.39,66.82,56.4,57.18,55.64,56.74,58.33,62.73,60.55,61.15,55.86,56.4,60.43,58.56,58.45,62.14,56.58,60.49,57.66,56.22,59.64,59.31,58.18,57.03,57.86,58.53,60.64,57.52,58.99,56.31,57.11,53.66,57.33,57.1,52.99,57.71,66.43,54.11,54.61,56.18,58.37,58.63,58.23,58.63,62.27,60.82,51.34,61.3,57.63,58.63,57.09,61.91,58.17,56.63,57.73,55.09,54.69,55.78,59.84,64.21,60.84,58.09,59.55,57.02,56.88,62.51]
{"prediction": [61.026, 61.196, 61.614, 61.991, 62.357]}
[39.34,39.98,41.15,39.83,42.23,40.83,42.95,39.91,43.44,43.1,44.95,43.35,42.31,43.13,40.81,39.77,43.01,49.42,48.77,48.99,46.76,50.06,49.46,48.6,47.41,45.62,47.45,46.24,47.58,49.1,45.15,48,44.63,46.21,47.06,50.41,48.66,48.5,51.34,43.34,45.57,47.76,46.78,49.5,49.57,49.17,47.71,48.72,48.42,50.75,48.48,49.72,47.42,48.06,45.03,47.71,47.87,44.48,48.37,47.25,44.73,45.66,46.89,49.15,42.51,47.98,44.75,49.77,50.46,42.98,51.3,48.39,48.91,47.8
2018-12-11T12:19:02.545Z interactor:daemon [PM2 Agent] Launching agent
2018-12-11T12:19:02.545Z interactor:daemon Launching Interactor RPC server (bind to /Users/alex/.pm2/interactor.sock)
2018-12-11T12:19:02.642Z interactor:interface Transporters are not connected, connect them with: {"push":"https://theta.keymetrics.io:80","ws":"wss://theta.keymetrics.io/interaction/public","reverse":"https://theta.keymetrics.io:43554","realtime":"https://theta.keymetrics.io:443","web":"https://theta.keymetrics.io:443"}
2018-12-11T12:19:02.799Z interactor:daemon Error while trying to retrieve endpoints : Unexpected server response: 401
2018-12-11T12:19:02.800Z interactor:daemon Retrying to retrieve endpoints...
2018-12-11T12:19:03.058Z interactor:interface Transporters are not connected, connect them with: {"push":"https://theta.keymetrics.io:80","ws":"wss://theta.keymetrics.io/interaction/public","reverse":"https://theta.keymetrics.io:43554","realtime":"https://theta.keymetrics.io:443","web":"https://theta.keymetrics.io:44
module.exports = {
apps : [{
name: 'electron',
cmd: '/home/unitech/envision-dashboard/node_modules/.bin/electron',
args: '/home/unitech/envision-dashboard/electron'
}]
};
const Envision = require('./src/Envision')
const pmx = require('pmx')
pmx.init({
isModule: true
})
if (require.main === module) {
const envision = new Envision({
wizard_mode: false,