Skip to content

Instantly share code, notes, and snippets.

View Arul-'s full-sized avatar

Arul Arul-

View GitHub Profile
@harshad-tal
harshad-tal / bg_subtractor.py
Created March 10, 2017 09:23
Background Subtraction from video using OpenCV and Python
import numpy as np
import cv2
file_path = "vid.mp4"
cap = cv2.VideoCapture(file_path)
first_iter = True
result = None
while True:
ret, frame = cap.read()
@entropiae
entropiae / fix_git_sslread_9806.sh
Last active February 3, 2022 23:32
git: how to solve "SSLRead() return error -9806" in OSX using brew
$ brew remove git
$ brew remove curl
$ brew install openssl
$ brew install --with-openssl curl
$ brew install --with-brewed-curl --with-brewed-openssl git
@thaarok
thaarok / remote.php
Last active February 4, 2020 16:37
Samsung TV/DVR remote control in PHP. Protocol description here: http://sc0ty.pl/2012/02/samsung-tv-network-remote-control-protocol/
<form action="remote.php" method="POST">
<input type="text" name="channel" value="<?php echo htmlspecialchars(@$_POST["channel"]) ?>"><input type="submit" name="go" value="Go">
</form>
<form action="remote.php" method="POST">
<input type="submit" name="key" value="KEY_1">
<input type="submit" name="key" value="KEY_2">
<input type="submit" name="key" value="KEY_3"><br>
<input type="submit" name="key" value="KEY_4">
<input type="submit" name="key" value="KEY_5">
@mikesmullin
mikesmullin / watch.sh
Last active April 26, 2023 05:20
watch is a linux bash script to monitor file modification recursively and execute bash commands as changes occur
#!/usr/bin/env bash
# script: watch
# author: Mike Smullin <mike@smullindesign.com>
# license: GPLv3
# description:
# watches the given path for changes
# and executes a given command when changes occur
# usage:
# watch <path> <cmd...>
#