This file contains hidden or 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
| User-Agent: Googlebot | |
| Allow: / | |
| User-Agent: Googlebot-Mobile | |
| Allow: / | |
| User-Agent: msnbot | |
| Allow: / | |
| User-Agent: bingbot |
This file contains hidden or 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 | |
| # Nagios client install script | |
| # Vinayak Mishra <[email protected]> | |
| set -e -x | |
| # ensure only root can run the script | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root" | |
| exit 1 |
This file contains hidden or 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
| /** | |
| * Simple email validation | |
| * ensures at least one `@` sign, at least one char in local part, | |
| * at least one `.` in domain part and is at least one char long | |
| */ | |
| isEmail: function (em) { | |
| em = em || ''; | |
| var indx = em.lastIndexOf('@'); | |
| return indx > 0 && (em.lastIndexOf('.') > indx) && (em.length - indx > 1); | |
| } |
This file contains hidden or 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 | |
| ## Install pre-requisites | |
| sudo apt-get install -y git-core build-essential openssl libssl-dev pkg-config | |
| ## Ensure python <3 is available | |
| ret=`python -c 'import sys; print("%i" % (sys.hexversion<0x03000000))'` | |
| if [ $ret -eq 0 ]; then | |
| echo "we require python version <3" | |
| mkdir /tmp/bin; ln -s /usr/bin/python2.7 /tmp/bin/python; |
NewerOlder