Skip to content

Instantly share code, notes, and snippets.

View Lucifer1590's full-sized avatar

Testingguy Lucifer1590

View GitHub Profile
@Lucifer1590
Lucifer1590 / monitor.py
Created March 12, 2024 15:14
kuzco monitor
import requests
from datetime import datetime
import time
import sys
url = "https://relay.kuzco.xyz/api/trpc/worker.list,metrics.worker?batch=1&input=%7B%220%22%3A%7B%22json%22%3Anull%2C%22meta%22%3A%7B%22values%22%3A%5B%22undefined%22%5D%7D%7D%2C%221%22%3A%7B%22json%22%3A%7B%22workerId%22%3A%22r-s-RXhWHZ%22%7D%7D%7D"
headers = {
'Authorization': 'Bearer eyJhbGciNzcwMDg4MzNAZ21haWwuY29tIXdL35_GmH7NwLVDuGEdFUWs',
'Content-Type': 'application/json'
}
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');
body {
font-family: 'Roboto', sans-serif;
background-color: #f8f9fa;
margin: 0;
color: #333;
}
.container {
version: "3.8"
services:
tunnel:
container_name: cloudflared
image: jonoh/cloudflared
restart: unless-stopped
command: tunnel run
environment:
- TUNNEL_TOKEN=
networks: