This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -maxdepth 1 -iname '*.mkv' -exec ffprobe -v quiet -of csv=p=0 -show_entries forma│···································· | |
t=duration {} \; | paste -sd+ -| bc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Copyright (c) 2014 Adafruit Industries | |
# Author: Tony DiCola | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOSTNAME="${COLLECTD_HOSTNAME:-localhost}" | |
INTERVAL="${COLLECTD_INTERVAL:-60}" | |
while sleep "$INTERVAL"; do | |
VALUE="$(zpool list -Ho capacity)" | |
VALUE="$(echo "${VALUE: :-1}")" | |
echo "PUTVAL $HOSTNAME/zpool_capacity/percent interval=$INTERVAL N:$VALUE" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/bash | |
#This script requires speedtest-cli to function!!!!!!!!!!!!!!!!!!!!!!! | |
#Prepare to start the loop and warn the user | |
echo "Press [CTRL+C] to stop..." | |
#Store the speedtest results into a variable | |
results=$(/usr/local/bin/python2.7 /root/speedtest-cli --simple) | |
echo "$results" |