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 {createJestConfig} = require('tsdx/dist/createJestConfig'); | |
const {paths} = require('tsdx/dist/constants'); | |
process.env.BABEL_ENV = 'test'; | |
process.env.NODE_ENV = 'test'; | |
const config = createJestConfig(undefined, paths.appRoot); | |
// For absolute imports | |
config.modulePaths = ["<rootDir>/src"]; |
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
# /etc/systemd/system/terraria.service | |
[Unit] | |
Description=Server daemon for Terraria with base directory /opt/terraria | |
After=network.target | |
[Service] | |
WorkingDirectory=/opt/terraria | |
User=terraria | |
Restart=always |
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
import sys | |
def wait_for_enter(): | |
raw_input("Press Enter to continue: ") | |
class CreateSSHKeypairStep(object): | |
def run(self, context): | |
print("Run:") | |
print(" ssh-keygen -t rsa -f ~/{0}".format(context["username"])) | |
wait_for_enter() |