Here is the original haproxy.cfg (modified from here):
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 4096
user haproxy
group haproxy
| from datetime import datetime, time | |
| from zoneinfo import ZoneInfo | |
| import sqlite3 | |
| import csv | |
| import sys | |
| class billit: | |
| def __init__(self, path): | |
| self.db = sqlite3.connect(path) |
| # Image tiler for EasyZoom's image | |
| # This script requires Pillow (https://pillow.readthedocs.io/en/stable/) | |
| # You have to download the .szi file of the EasyZoom image. | |
| # You can find the URL of this file in by "inspecting" the page in the browser | |
| # and looking at the "Network" tab. Be sure to remove the "?bytes=xxxxxx-yyyyyyy" | |
| # of the URL params before downloading. |
Here is the original haproxy.cfg (modified from here):
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
maxconn 4096
user haproxy
group haproxy
| # SVG file to use -> https://upload.wikimedia.org/wikipedia/commons/9/91/Tableau_p%C3%A9riodique_des_%C3%A9l%C3%A9ments.svg | |
| # Use Pyhton 3.4 | |
| from xml.dom import minidom | |
| import json | |
| def main(): | |
| """THE main function.""" | |
| elements = {} |