Skip to content

Instantly share code, notes, and snippets.

@ndunks
ndunks / ddns-update
Last active January 17, 2021 03:23
Namecheap DDNS Updater Bash Script
# make it executable `chmod +x ddns-update`
# move it path `mv ddns-update /usr/bin/`
# setup cronjob for every 15 minutes `crontab -e`
# */15 * * * * ddns-update >/dev/null 2>&1
# dont forget to change your own domain & password
# uncomment if you want internet connection check before running
#while ! ping -c 1 -W 1 8.8.8.8; do
# echo "DDNS-UPDATE: Waiting internet connection.."
# sleep 2
@untra
untra / record.sh
Last active January 28, 2024 18:09
ffmpeg rtsp to hls recording script
# /bin/sh
# ./record.sh -i 192.168.0.47:554 -v 11 -r 1280x720
# Some sane defaults for the environment.
DATE=`date +%Y-%m-%d`
TIME=`date +%H-%M-%S`
CAMERA_USER='admin'
CAMERA_PASS='admin'
CAMERA_IP='10.10.10.1'
CAMERA_NAME='cam1'