<commit_before>= checkers
== Description
A BASH script for OS X and Linux (coming soon) that checks the availability of websites and APIs, providing notifications via OSD (Growl, Notify OSD) and voice (say, festival). Example:

http://a.yfrog.com/img864/5027/du3z.png

Oh noes!

== Rational
- running this script locally every minute sometimes beats other monitors (Nagios, monit, etc) that rely on being emailed
- any site down popup is 'sticky' so it will stay there until you acknowledge it, *which is annoying*, so it gets your attention
- logs all alerts with hostname and timestamp for later review

== Dependencies
- bash
- curl 
- {growl}[http://growl.info/downloads] (tested with 1.2.2) and growlnotify (from the _Extras_ folder) (OS X)
- {Notify OSD}[https://wiki.ubuntu.com/NotifyOSD] (Linux) Linux version coming soon...

== Source
- https://github.com/philcryer/checkers

== Usage
Download, give it execute permissions and run it with the default values to see what it does:

 chmod +x checkers
 ./checkers

If that worked, edit the file and modify the URLs listed in the ARRAY variable to ones you want checked, then, run it in a loop for debugging:

 while true; do /path/to/checkers; sleep 60; done

or set it as a cronjob. If you don't like the 'successful' message displaying every time it's run, simply disable it via the COMPLETED_MESSAGE variable.
<commit_msg>updated linux speech app<commit_after>= checkers
== Description
A BASH script for OS X and Linux (coming soon) that checks the availability of websites and APIs, providing notifications via on screen display and voice. Example:

http://a.yfrog.com/img864/5027/du3z.png

Oh noes!

== Rational
- I want the alert of a site down before any user, but I don't check my email every minute
- running this script locally every minute usually beats other monitors (Nagios, monit, etc) that rely on being emailed
- any site down popup is 'sticky' so it will stay there until you acknowledge it, *which is annoying*, so it gets your attention - which is good for the ADD in all of us!
- logs all alerts with hostname and timestamp for later review

== Dependencies
= General
- bash
- curl 
= OS X (10.7)
- {growl}[http://growl.info/downloads] (tested with 1.2.2) and growlnotify (in the Growl _Extras_ folder)
- say 
= Linux (coming soon!)
- {Notify OSD}[https://wiki.ubuntu.com/NotifyOSD] 
- {eSpeak][http://espeak.sourceforge.net/] 

== Source
- https://github.com/philcryer/checkers

== Usage
Download, give it execute permissions and run it with the default values to see what it does:

 chmod +x checkers
 ./checkers

If that worked, edit the file and modify the URLs listed in the ARRAY variable to ones you want checked, then, run it in a loop for debugging:

 while true; do /path/to/checkers; sleep 60; done

or set it as a cronjob. If you don't like the 'successful' message displaying every time it's run, simply disable it via the COMPLETED_MESSAGE variable.

{'fraction_non_alphanumeric': 0.08126487589255356, 'fraction_numerical': 0.00986059163549813, 'mean_word_length': 4.0899653979238755, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2697095', 'n_tokens_mistral': 907, 'n_tokens_neox': 845, 'n_words': 420}