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 | |
# Wrapper around speedtest cli (speedtest.net) | |
#################################################### | |
# - Required: https://www.speedtest.net/apps/cli or https://github.com/sivel/speedtest-cli | |
# - Put this script in same dir as speedtest-cli or in parent dir | |
# - Uncomment line below to add an extra exclude besides "-x" ('grep -v server/country') | |
#exclude="\(Vodafone\|Brazil\|Comcast\|Hawaii\)" |
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/sh | |
#sg=2 | |
if [ "$USER" != "root" ]; then echo "[ERROR] You are not root."; exit 1; fi | |
if [ -z "$sg" ]; then sg=0; fi | |
for i in $( seq "$sg" 3 ); do | |
for j in $( seq 1 28 ); do | |
res="$( smartctl -d areca,"$j" -a "/dev/sg${i}" | \ | |
grep -Ei "model|serial|result|capacity" | \ | |
sed -Ee 's/ Number|User Capacity| [0-9].*bytes//g' \ |
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/sh | |
BL=blacklist-yt.txt | |
LOGDIR=/var/log | |
#REGEX="r\([0-9]\|[0-9][0-9]\)---sn-.*\.googlevideo\.com" | |
REGEX="r\([0-9]\|[0-9][0-9]\)\.sn-.*\.googlevideo\.com" | |
DEBUG=1 | |
if [ ! -f $BL ]; then echo "$BL does not exist, exiting..."; exit 1; fi | |
{ ps -o comm= --pid $$ | grep bash; } > /dev/null 2>&1 && shopt -s expand_aliases |