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
| # Copy this to your home folder and have requests installed (pip install requests) | |
| import requests | |
| resp = requests.get("http://192.168.2.100:80/api/video") | |
| for video in resp.json(): | |
| file_name = video["dir"].replace("%2B", "+") + "_" + video["name"] | |
| url = f"http://192.168.2.100:80/api/video/{video['dir']}/{video['name']}" | |
| with requests.get(url, stream=True) as r: |
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 socket | |
| from time import sleep | |
| def main(): | |
| interfaces = socket.getaddrinfo(host=socket.gethostname(), port=None, family=socket.AF_INET) | |
| allips = [ip[-1][0] for ip in interfaces] | |
| msg = b"spammy message nruonaeoiaestosdiaeoddiaobdipiaefobdiaeoni" | |
| sport = 35424 |
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
| version: "3.9" | |
| services: | |
| caddy: | |
| image: caddy | |
| restart: unless-stopped | |
| ports: | |
| - "80:80" | |
| - "443:443" | |
| volumes: |