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
#!/bin/bash | |
# Stripped down and tweaked version of auto.net | |
# This file must be executable to work! chmod 755! | |
key="$1" | |
echo "/" | awk -v key="$key" -v opts="-fstype=efs" -- ' | |
BEGIN { ORS=""; first=1 } | |
{ if (first) { print opts; first=0 }; print "\\\n\t" $1, key ":" $1 } |
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 app = express(); | |
const {NODE_ENV} = process.env; | |
module.exports = function(nodecg) { | |
if (NODE_ENV !== 'production') { | |
const webpack = require('webpack'); | |
const webpackConfig = require('../webpack.dev.config'); | |
const devMiddleware = require('webpack-dev-middleware'); |
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
nodecg.obs will be an OBSRemote object, defined below | |
It also has OBSScene and OBSSource objects, which are defined at the bottom. | |
-------------- | |
/** | |
* Try to connect to OBS | |
* Password is optional, NodeCG will check is auth is needed | |
* | |
* If connection fails, obs.onConnectionFailed is called |