Skip to content

Instantly share code, notes, and snippets.

View efectn's full-sized avatar
:bowtie:
Bruh

M. Efe Çetin efectn

:bowtie:
Bruh
View GitHub Profile
import cv2
import subprocess
cap = cv2.VideoCapture(0)
width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
fps = int(cap.get(cv2.CAP_PROP_FPS))
if fps == 0:
fps = 30
@efectn
efectn / fan_control.sh
Last active January 18, 2023 22:30
Orange Pi 5 Fan Control with WiringPi
#!/bin/bash
# Check Wiring Pi installed
if ! command -v gpio &> /dev/null; then
echo "You must install WiringPi."
exit 1
fi
# WiringPi ID of GPIO pin
GPIO=0
@efectn
efectn / install-pantheon
Last active February 25, 2025 04:32
You can install Pantheon by running this script on Arch linux.
#!/usr/bin/env bash
echo "Welcome to Pantheon installation script!"
# Check root access
if ! [[ $(id -u $USER) -eq 0 ]]; then
echo "You must be root!"
exit
fi