Skip to content

Instantly share code, notes, and snippets.

@kuropen
kuropen / gist:11321818
Last active August 29, 2015 14:00
Shell script to execute a node.js script with daemonized by forever which is installed under management of nodebrew
#!/bin/bash
cd /home/kuropen1/nodehost/elecwarn3-web
PORT=61595 /home/kuropen1/.nodebrew/current/bin/forever start -c /home/kuropen1/.nodebrew/current/bin/node app.js > ~/tmp/forever-start.log
@kuropen
kuropen / gist:6255997
Created August 17, 2013 09:01
JSON exported from new elecwarn web (specific company)
[
{
"id": 367570,
"company": "tohoku",
"consume": 1109,
"capacity": 1458,
"recorddate": "2013-08-17T17:50:00+09:00",
"sysver": 2,
"createdAt": null,
"updatedAt": null
@kuropen
kuropen / gist:6202636
Last active December 20, 2015 22:09
JSON exported from new elecwarn web (for newest entry; please wait for history of specific company later)
{
"chugoku": {
"id": 354259,
"company": "chugoku",
"consume": 777,
"capacity": 1206,
"recorddate": "2013-08-09T23:30:00+09:00",
"sysver": 2,
"createdAt": null,
"updatedAt": null