Skip to content

Instantly share code, notes, and snippets.

@boo13
boo13 / FreeNAS11 Media Stack.md
Created November 11, 2019 02:14 — forked from BernCarney/FreeNAS11 Media Stack.md
FreeNAS 11 - Jails setup for Plex, NGINX, PlexPy, Sonarr, Radarr, Jackett, Ombi, and Nzbget

FreeNAS 11 setup for Plex, PlexPy, Sonarr, Radarr, Jackett, NZBGet, Organizr, NGinx, and Ombi

I am currently working on updating this guide after updating my media server. I have added notes on things I no longer use but may update those sections in the future for users who still use them. As of now, I have everything working with the exception of Ombi and the plugins I no longer use.

@boo13
boo13 / webcam-cv2.py
Created October 12, 2019 07:15 — forked from tedmiston/webcam-cv2.py
Display the webcam in Python using OpenCV (cv2)
"""
Simply display the contents of the webcam with optional mirroring using OpenCV
via the new Pythonic cv2 interface. Press <esc> to quit.
"""
import cv2
def show_webcam(mirror=False):
cam = cv2.VideoCapture(0)
@boo13
boo13 / opencv_webcam_multithread.py
Created September 5, 2019 07:48 — forked from allskyee/opencv_webcam_multithread.py
opencv python camera frame grab and display on different threads with safe synchronization
#!/usr/bin/env python
from threading import Thread, Lock
import cv2
class WebcamVideoStream :
def __init__(self, src = 0, width = 320, height = 240) :
self.stream = cv2.VideoCapture(src)
self.stream.set(cv2.cv.CV_CAP_PROP_FRAME_WIDTH, width)
self.stream.set(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT, height)
@boo13
boo13 / RGB2HSV.py
Created August 22, 2019 20:58 — forked from ahadcove/RGB2HSV.py
RGB2HSV Script for OpenCV
#!/usr/bin/python
import cv2
import numpy as np
import sys
if len(sys.argv) < 4:
print("You need to enter 3 numbers")
sys.exit()
#!/usr/bin/env python
import sys
if sys.version_info[0] >= 3:
import PySimpleGUI as sg
else:
import PySimpleGUI27 as sg
import cv2 as cv
from PIL import Image
import io
from sys import exit as exit