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
#! /usr/bin/env python3 | |
import os | |
import sys | |
import logging | |
import subprocess | |
import io | |
import shutil | |
##################################################### |
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
#! /usr/bin/env python3 | |
# notes: | |
# - origin: https://steventsnyder.com/reading-a-dymo-usb-scale-using-python/ | |
# - device support: https://github.com/pyusb/pyusb#requirements-and-platform-support | |
# - device permissions: https://stackoverflow.com/a/73357412/455641 | |
# - kernel driver busy: https://ubuntuforums.org/archive/index.php/t-2044904.html | |
import usb.core |
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
# nginx configuration stored in /etc/nginx/sites-available/reviewboard and symlinked in /etc/nginx/sites-enabled | |
upstream reviewboard_uwsgi { | |
server localhost:12001; | |
} | |
server { | |
listen 443 ssl; | |
server_name reviewboard.example.com; | |
location / { |