Skip to content

Instantly share code, notes, and snippets.

View demonbane's full-sized avatar

Alex Malinovich demonbane

View GitHub Profile
@demonbane
demonbane / clean-radarr-import.sh
Created February 5, 2019 07:59
Delete directory after Radarr import
#!/usr/bin/env bash
# log all output from here on out to a log file. Comment this line out if testing from command-line
exec >> /path/to/store/log-file
printf '\nclean-radarr-import.sh called at %b\n\n' "$(date)"
# For debugging, print every radarr environment variable passed to the script
# if you don't want it, just delete these 3 lines
for i in ${!radarr*}; do
printf '%b="%b"\n' "$i" "${!i}"
done
@demonbane
demonbane / gist:1f122f4d7f5fadba54e5a6a4fce4c8ff
Created June 20, 2020 04:26
homebridge-nest-cam@test install log
$ sudo npm -g i homebridge-nest-cam@test
/usr/bin/homebridge-nest-cam -> /usr/lib/node_modules/homebridge-nest-cam/cli.sh
> ffmpeg-for-homebridge@0.0.6 install /usr/lib/node_modules/homebridge-nest-cam/node_modules/ffmpeg-for-homebridge
> node install.js
Failed to download ffmpeg binary.
If you are installing this plugin as a global module (-g) make sure you add the --unsafe-perm flag to the install command.
The homebridge plugin has been installed, however you may need to install ffmpeg separately.