Skip to content

Instantly share code, notes, and snippets.

View casimiro's full-sized avatar

Caio Ramos Casimiro casimiro

View GitHub Profile
#!/usr/bin/python3
import math
import subprocess
import time
import re
def _resolution_from_monitor_data(monitor):
values = re.search(r'\d+x\d+', monitor).group().split('x')
return int(values[0]), int(values[1])
[
{
"authenticated_entity": {
"id": "8fcd11f9-3358-40b4-a494-131c3bd1d25e"
},
"client_ip": "192.168.64.1",
"consumer": {
"created_at": 1596485598,
"id": "3391944b-2c84-4eda-95d0-20fb21f16c1b",
"type": 0,