npm install -g node-inspector
přepínač -g znamená, že se nainstaluje do /Users/bydga/.nvm/versions/node/v4.2.1/bin/node-inspector
OT: standardní npm install express nainstaluje modul do aktuální složky, do ./node_modules/express
| blueprint: | |
| name: Bydga Custom Hue Switch Action | |
| domain: automation | |
| input: | |
| switch_device: | |
| name: Zigbee Switch | |
| description: Select the Zigbee switch that will trigger the actions. | |
| selector: | |
| device: | |
| integration: zha # Change if using zigbee2mqtt |
| select l.type, count(*) | |
| from login_log l | |
| left join users u on u.id=l.id_user | |
| where u.internal=false | |
| group by l.type | |
| "twitter";126 | |
| "email";9013 | |
| "facebook";5727 |
| 2016-09-19T09:47:27.492089+00:00 mesos-master2 marathon[14634]: [2016-09-19 09:47:27,491] WARN Error: Framework disconnected | |
| 2016-09-19T09:47:27.492092+00:00 mesos-master2 marathon[14634]: In case Mesos does not allow registration with the current frameworkId, delete the ZooKeeper Node: /marathon/state/framework:id | |
| 2016-09-19T09:47:27.492095+00:00 mesos-master2 marathon[14634]: CAUTION: if you remove this node, all tasks started with the current frameworkId will be orphaned! (mesosphere.marathon.MarathonScheduler$$EnhancerByGuice$$b1753258:Thread-1566) | |
| 2016-09-19T09:47:27.492099+00:00 mesos-master2 marathon[14634]: [2016-09-19 09:47:27,491] ERROR Committing suicide! (mesosphere.marathon.MarathonScheduler$$EnhancerByGuice$$b1753258:Thread-1566) | |
| 2016-09-19T09:47:27.492243+00:00 mesos-master2 marathon[14634]: I0919 09:47:27.492220 14738 sched.cpp:1217] Aborting framework '20160106-083626-1258962954-5050-9311-0000' | |
| 2016-09-19T09:47:27.492508+00:00 mesos-master2 marathon[14634]: [2016-09-19 09:47:27,492] INFO Driv |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| #IP addrees this VM will have | |
| IP = "192.168.50.4" | |
| # script that updates the system, downloads all prerequisities, installs docker, | |
| # zookeeper, marathon, clones actual mesos branch and compiles it. | |
| $setup = <<SCRIPT |
| bydga@bydga-mac ~/Downloads/marathon-0.14.0-RC2/bin $ ./start --master 192.168.59.4:5050 --zk zk://localhost:2181/marathon-bbb | |
| MESOS_NATIVE_JAVA_LIBRARY is not set. Searching in /usr/lib /usr/local/lib. | |
| MESOS_NATIVE_LIBRARY, MESOS_NATIVE_JAVA_LIBRARY set to '/usr/local/lib/libmesos.dylib' | |
| [2016-01-13 16:25:23,342] INFO Starting Marathon 0.14.0-RC2 with --master 192.168.59.4:5050 --zk zk://localhost:2181/marathon-bbb (mesosphere.marathon.Main$:main) | |
| [2016-01-13 16:25:26,000] INFO Connecting to ZooKeeper... (mesosphere.marathon.Main$:main) | |
| [2016-01-13 16:25:26,020] INFO Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT (org.apache.zookeeper.ZooKeeper:main) | |
| [2016-01-13 16:25:26,020] INFO Client environment:host.name=10.11.0.200 (org.apache.zookeeper.ZooKeeper:main) | |
| [2016-01-13 16:25:26,020] INFO Client environment:java.version=1.8.0_31 (org.apache.zookeeper.ZooKeeper:main) | |
| [2016-01-13 16:25:26,020] INFO Client environment:java.vendor=Oracle Corporation (org.apache.zookeeper.ZooKee |
| var fruits = ["apple", "pear", "banana", "mango"] | |
| var functions = [] | |
| //EDIT THIS: | |
| for (var i=0; i<fruits.length; i++) { | |
| var fruit = fruits[i] | |
| functions.push( | |
| function(fr) { |
| //načtení externího modulu, který parsuje/sestavuje url (nodejs) | |
| var url = require("url") | |
| doHttpRequest = function() { | |
| //do nothing | |
| return | |
| } | |
| var work = function(){ | |
| url = "http://api.zcu.cz" | |
| doHttpRequest(url) |