sudo bash < <(curl -s https://gist.github.com/zulhfreelancer/0b87a274686cb4d98b8144e116c5117c/raw/2adcb49704045d6b3b9ebd3c44f37a2a3b3c5da0/install-flynn-single-node.sh)
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
| [Unit] | |
| Description=Forward TCP from 9999 to 8888 on 10.77.77.77 | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=nobody | |
| Group=nobody | |
| ExecStart=/usr/bin/socat TCP-LISTEN:9999,fork TCP:10.77.77.77:8888 | |
| Restart=always |
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
| fs = require 'fs' | |
| CoffeeScript = require 'coffee-script' | |
| task "build:package", "Builds the package.json from its coffee source", (options) -> | |
| js = CoffeeScript.compile "return #{fs.readFileSync('package.coffee', 'utf8')}" | |
| json = JSON.stringify eval(js), null, 2 | |
| fs.writeFileSync 'package.json', json | |
| console.log('Successfully wrote out package.json') |