Last active
December 31, 2015 02:29
-
-
Save DavidWittman/7921210 to your computer and use it in GitHub Desktop.
I hope I never need this again.
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 | |
SECONDS_SINCE_LAST_SEGFAULT=$(( $(date '+%s') - $(date -d "$(fgrep segfault /var/log/syslog | tail -1 | awk '{ print $1,$2,$3 }')" '+%s') )) | |
echo "IT HAS BEEN" | |
echo -ne "\e[00;33m" | |
figlet -f big $SECONDS_SINCE_LAST_SEGFAULT | |
echo -ne "\e[00m" | |
echo "SECONDS SINCE THE LAST SEGFAULT!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment