Skip to content

Instantly share code, notes, and snippets.

@DavidWittman
Last active December 31, 2015 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidWittman/7921210 to your computer and use it in GitHub Desktop.
Save DavidWittman/7921210 to your computer and use it in GitHub Desktop.
I hope I never need this again.
#!/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