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
#!/usr/bin/env python3 | |
# performance monitor reporting machine load statistics over a simple HTTP server | |
# intended to be used to monitor status of headless servers from within NeosVR world | |
# format of data is optimized to be read with the simple GET request and LogiX processing supported by Neos | |
# requires psutil library: https://pypi.org/project/psutil/ | |
# install using 'pip install psutil' | |
import psutil |
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
#!/usr/bin/env python3 | |
# requires Google Images Download library: https://github.com/hardikvasa/google-images-download | |
# install using 'pip install google_images_download' | |
from google_images_download import google_images_download | |
from http.server import HTTPServer, BaseHTTPRequestHandler | |
from urllib.parse import parse_qs | |
from time import time |
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
#!/usr/bin/env python3 | |
# Runs a web server which responds to any request with a random image from the current directory. | |
# This is just a quick example script not a properly fleshed out application. | |
from http.server import HTTPServer, BaseHTTPRequestHandler | |
import os | |
import random | |
HTTP_PORT = 8080 |