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 | |
# Specify the threshold over which an error should be flagged | |
# Defaults to 60, but can be passed like ./script threshold | |
if [ -z $1 ] | |
then | |
threshold=60 | |
else | |
threshold="$1" | |
if [[ $threshold != +([0-9]) ]] |
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 | |
# Script inspired by https://gist.github.com/1025598 | |
#### WARNING #### | |
#### Please be careful with this script. The use of eval $(find) is dangerous. | |
#### If a user can upload a file called wp-config.php anywhere onto your site, | |
#### they can probably execute arbitrary commands via this script. | |
#### You have been warned. GPL, no warranty. | |
# Inspired by http://stackoverflow.com/questions/7586995/read-variables-from-wp-config-php |
NewerOlder