Skip to content

Instantly share code, notes, and snippets.

@Anomalous
Anomalous / perf_mon_server.py
Created September 28, 2019 05:45
Server script for headless client performance monitor in Neos VR
#!/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
@Anomalous
Anomalous / image_search.py
Created May 27, 2019 04:41
Little script to interface between NeosVR and Google Image Search
#!/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
@Anomalous
Anomalous / serve-random-image.py
Created April 23, 2019 05:47
Little Python script that runs a web server which responds to any request with a random image from the current directory.
#!/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