Skip to content

Instantly share code, notes, and snippets.

View TheConstant3's full-sized avatar

Konstantin TheConstant3

View GitHub Profile
@TheConstant3
TheConstant3 / docker-status.sh
Created June 2, 2022 13:04 — forked from ppetko/docker-status.sh
Bash script that checks status for docker swarm services and nodes.
#!/bin/bash
#####################################################################################
## docker-status.sh - Bash script that checks status for docker swarm services and nodes.
## Functions:
# check_replication - Check if all stacks are running in service.
# check_swarm_nodes - Check if all nodes are reacheble and healthy.
# check_swarm_services - Check if any of the services failed.
#####################################################################################
@TheConstant3
TheConstant3 / RtspStreaming
Last active February 28, 2022 09:35
RtspServer with two queues for camera stream and processed camera stream
import time
import multiprocessing as mp
import numpy as np
import cv2
import gi
gi.require_version('Gst', '1.0')
gi.require_version('GstRtspServer', '1.0')
from gi.repository import GObject, Gst, GstRtspServer