This file contains hidden or 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
<snippet> | |
<content><![CDATA[ | |
if (err) { return console.error(err); } | |
]]></content> | |
<tabTrigger>ce</tabTrigger> | |
<scope>source.js</scope> | |
<description>Insert callback error check</description> | |
</snippet> |
This file contains hidden or 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
This will reload any changes you make in the service that you watch - | |
bosco cdn -t summary -w the-thing-you-want-to-watch | |
This will let you stop a service - | |
pm2 stop service-name | |
This will list all the services which are currently running/stopped - | |
pm2 list | |
This will restart a service - |
This file contains hidden or 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
import gs from 'fast-gs'; | |
import axios from 'axios'; | |
// Needed to throttle data coming in from Google spreadsheets | |
const RateLimiter = require('limiter').RateLimiter; | |
const limiter = new RateLimiter(50, 'second'); | |
// Access details for worksheet | |
const googleKey = ''; | |
const googleSheetId = ; |