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
import requests | |
from flask import Flask, request | |
# Pushover Credentials (Replace with your real credentials) | |
PUSHOVER_USER_KEY = "uboq658g2h4yeu72p4thxfurmu3wkj" | |
PUSHOVER_API_TOKEN = "atsrka2kwa2dc1a9u5xpas36znsn29" | |
def discord_to_pushover(request): | |
"""Handles Discord webhooks from Prusa Connect and forwards to Pushover.""" | |
try: |
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
sudo docker run --restart unless-stopped -t -p 0.0.0.0:8443:8443 -v "${PWD}:/root/project" codercom/code-server code-server --allow-http --no-auth |