Skip to content

Instantly share code, notes, and snippets.

View frizzby's full-sized avatar

Yan Davidovich frizzby

View GitHub Profile
import serial
import time
# Serial port configuration
serial_port = '/dev/ttyUSB0'
baudrate = 9600
parity = serial.PARITY_NONE
stopbits = serial.STOPBITS_ONE
bytesize = serial.EIGHTBITS
timeout = 1 # 1 second timeout
#!/bin/bash
: '
This script lists all running containers on a Proxmox host along with their
Container ID (CTID), IP addresses, and hostnames. If an IP
address is provided as a command-line argument, the script will highlight (in red)
the IP in the output.
The loopback interface and IPv6 link-local addresses are omitted.
Usage: