View addNewSecret.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
const childProcess = require('child_process'); | |
const { promisify } = require('util'); | |
const exec = promisify(childProcess.exec); | |
const DRY_RUN = true; // set to false when you want to execute it | |
const { NEW_SECRET } = process.env; // do not end up committing the new secret :-) | |
(async () => { | |
const { stdout: apps } = await exec('heroku apps -A --json'); |
View index.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
const express = require('express'); | |
const createHttpError = require('http-errors'); | |
const app = express(); | |
app.get('/foo', | |
middlewareOne, | |
middlewareTwo, | |
fooHandler | |
); |
View afdeling.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
module.exports = () => { | |
return { afdeling: true }; | |
} |
View index.ts
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
const GAMES = Object.freeze({ | |
CSGO: { | |
skillLevel: 'good' | |
}, | |
WOW: { | |
skillLevel: 'average' | |
} | |
}); | |
type GameKey = keyof typeof GAMES; |