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 | |
| while (true) ; do clear; ps aux | grep apache | grep -v grep | awk '{sum+=$6} END {print "Total Size = ", sum; print "Averae Size = ", sum/NR; print "Number Of Processes = ", NR}'; sleep 1; done |
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
| <?php | |
| function array_splice_preserve ($input, $offset, $length, $replacement) { | |
| $keys = array_keys($input); | |
| $values = array_values($input); | |
| array_splice($keys, $offset, $length, array_keys($replacement)); | |
| array_splice($values, $offset, $length, array_values($replacement)); | |
| return array_combine($keys, $values); | |
| }; |
NewerOlder