This FAQ is outdated. Please go to the new FAQ instead.
I hereby claim:
- I am ngld on github.
- I am ngld (https://keybase.io/ngld) on keybase.
- I have a public key ASCS4BVAMNBHXB3l03_Pwji-mbS2h4KmYWv_laEdgN2OcQo
To claim this, I am signing this object:
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf8"> | |
<title>Simple GP Tracker</title> | |
</head> | |
<body> | |
<div id="display"></div> | |
</body> | |
<script type="text/javascript" src="https://quisquous.github.io/cactbot/resources/common.js"></script> |
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
# Usage: | |
# Save this file as restarter.py in the same directory as the fs2 executable, install Flask and run "FLASK_APP=restarter.py flask run -p 8080 --no-reload --without-threads". | |
# Afterwards, either open the port or proxy it through a web server (like nginx) to make the web interface accessible. | |
# The script will write the standalone's stdout and stderr to out.log; make sure it has write permissions for that file. | |
import subprocess | |
from time import sleep | |
from threading import Thread | |
from flask import Flask, redirect |