Skip to content

Instantly share code, notes, and snippets.

@daktak
daktak / MoveFiles.py
Last active February 3, 2018 01:06
NZBGet script to move nzb files into watch dir
#!/usr/bin/env python2
# GistID: 581f5a91899f5662a4a8
#
# Move files post-processing script for NZBGet
#
# Copyright (C) 2013 Andrey Prygunkov <hugbug@users.sourceforge.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@daktak
daktak / getwebshot.sh
Last active December 30, 2018 22:38
Take a photo from the webcam and email it. Requires sendmail and mplayer
#!/bin/sh
#edit /etc/pam.d/system-auth
#change pam_unix (line 2 to below)
#auth [success=1 new_authtok_reqd=ok ignore=ignore default=bad] pam_unix.so try_first_pass likeauth nullok
#auth [default=ignore] pam_exec.so seteuid /usr/local/bin/getwebshot.sh
TMP_DIR=/tmp/cheese
HOSTNAME=localhost
MAILTO=me@email.com
MAILFROM=root@email.com.au
SUBJECT="Do you know this person?"