Skip to content

Instantly share code, notes, and snippets.

@fcenobi
fcenobi / ffserver.conf
Created December 17, 2021 08:29 — forked from peterhellberg/ffserver.conf
MJPEG stream from Webcam using FFServer and FFMpeg
HTTPPort 8090
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 200
MaxClients 100
MaxBandWidth 500000
CustomLog -
<Feed camera.ffm>
File /tmp/camera.ffm
FileMaxSize 200M
@fcenobi
fcenobi / argparse.sh
Last active July 30, 2022 01:20 — forked from mangalbhaskar/argparse.sh
key value parser for shell script for bash shell
declare -A args
while [[ "$#" > "0" ]]; do
case "$1" in
(*=*)
_key="${1%%=*}" && _key="${_key/--/}" && _val="${1#*=}"
args[${_key}]="${_val}"
# (>&2 echo -e "key:val => ${_key}:${_val}")
;;
esac
shift