Skip to content

Instantly share code, notes, and snippets.

View Steigner's full-sized avatar

Martin Juříček Steigner

  • IACS - Brno University of Technology
  • Brno, Czech Republic
  • 23:12 (UTC +02:00)
  • LinkedIn in/martin-juricek
View GitHub Profile
@Steigner
Steigner / commands.sh
Last active December 14, 2024 10:02
My Useful Commands
## delete containers
docker system prune -a --volumes
## build docker
docker build -t test .
## run docker
docker run -it --gpus all -v $(pwd):/app -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix test bash
docker run --gpus=all --rm --network=host -it -v %cd%/:/app test bash
@Steigner
Steigner / scan.py
Created April 28, 2024 16:15
Quickly find devices on the network
# !pip install ping3
import ping3
def ping_device(ip_address):
result = ping3.ping(ip_address)
if result is not None:
print(f"Device {ip_address} is reachable. Round-trip time: {result} ms")
else:
print(f"Device {ip_address} is unreachable.")