Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# makemkv.sh
#
# Rip a DVD/BLURAY using MakeMKV.
#
DIR="/srv/media/dvdimport/backup/"
LOG="/tmp/makemkv.log"
DRV=0
@wkettler
wkettler / zstatus.sh
Last active December 30, 2015 18:29
zstatus.sh checks the status of each zpool on the system and will send an email if all pools are not healthy. The check can be automated by adding the script to crontab.
#
# zstatus.sh
#
# Check pool status.
#
EMAIL="test@somewhere.com"
HOSTNAME="$(hostname)"
# Linux
STATUS="$(/sbin/zpool status -x)"
#!/bin/bash
####################################
# Last tested & updated 04/09/2014
####################################
VERS="0.9.12"
# Make sure only root can run script
if [[ $EUID -ne 0 ]]
then
@wkettler
wkettler / carbon-cache
Last active December 25, 2015 14:59 — forked from chalmerj/gist:1492384
#!/bin/bash
#
# carbon-cache
#
# Graphite's carbon-cache daemon init script.
#
# William Kettler <william.p.kettler@gmail.com>
#
# Source init-functions