Skip to content

Instantly share code, notes, and snippets.

View nithinkashyapn's full-sized avatar
🎯
Focusing

Nithin Kashyap nithinkashyapn

🎯
Focusing
View GitHub Profile
@nithinkashyapn
nithinkashyapn / index.js
Created July 11, 2021 18:03 — forked from joshinat0r/index.js
Umami API wrapper
const umami = require('./umami.js');
const api = await umami({
url: 'https://app.umami.is',
username: 'username',
password: 'password',
website: 1, // internal website-id
})
const stats = await api.getStats()
@nithinkashyapn
nithinkashyapn / node-js-app.service
Created July 5, 2021 06:09 — forked from yagop/node-js-app.service
Nodejs Systemd service example
[Unit]
Description=Node.js App
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/node-v7.4.0/bin/node index.js
WorkingDirectory=/home/yago/produccion/app
Environment="HOST=127.0.0.1"
Environment="PORT=1234"