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
[Unit] | |
Description=Start Herir Node.js Service | |
Requires=network.target | |
After=network.target | |
[Service] | |
Type=forking | |
WorkingDirectory=/srv/hereir/node | |
ExecStart=/usr/bin/forever start --pidFile /var/run/hereir.pid HereIR.js | |
ExecStop=/usr/bin/forever stop HereIR.js |
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
chrome.windows.getAll({populate: true}, function(a) { | |
var n=0; | |
for (var x in a) { | |
n+=a[x].tabs.length; | |
} | |
console.log(n); | |
}); | |
// => undefined (?) | |
// => 154 :D |
NewerOlder