Skip to content

Instantly share code, notes, and snippets.

View Hoto-Cocoa's full-sized avatar
🚙
Driving

Cocoa Hoto Hoto-Cocoa

🚙
Driving
View GitHub Profile
var lastId = '0000000000'
var emojis = []
loop {
let res = Mk:api('admin/emoji/list', {
limit: 100,
sinceId: lastId,
})
if (res.len == 0) break
@Hoto-Cocoa
Hoto-Cocoa / node.service
Last active February 23, 2017 21:22 — forked from perillamint/node.service
/etc/systemd/system/node.service
[Unit]
Description=Node Application
After=network.target
[Service]
WorkingDirectory=/root/path/
ExecStart=/usr/bin/node /root/path/index.js >> /root/path/runtime.log
Restart=always
StandardOutput=syslog
StandardError=syslog