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
# www.fduran.com | |
# Number of top 10 current TCP connections per IP | |
netstat -tan| grep -v 'LISTEN'| awk '{print $5}'| grep -v 'and' |grep -v 'Address' |cut -d':' -f1 |sort -n | uniq -c | sort -rn | head -n10 | |
# Top 10 IPs in Apache log files | |
cd /var/log/apache2; for i in ./access.log*; do echo $i; cat $i | awk '{print $1}'| sort -n | uniq -c | sort -rn | head -n10; done |
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
/*_________________________________________________________________________________ | |
// BooleanExpression.evaluateExpression('false and (false or (true and (false or true)))') | |
//updated by ayub...may need to change | |
___________________________________________________________________________________ | |
*/ | |
public class BooleanExpressionCalculation{ | |
public static boolean evaluateExpression(String expression){ | |
system.debug(expression.containsIgnoreCase('false')+'__'+expression.containsIgnoreCase('true')); |