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
""" | |
Integration between pyqcy and other testing libraries, | |
especially test runners (such as unittest or nose). | |
""" | |
import mocktest | |
from pyqcy.properties import Property | |
from pyqcy.runner import run_tests | |
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 | |
# Display the top five applications memory users | |
# http://www.cyberciti.biz/faq/linux-check-memory-usage/#comment-51021 | |
free -hto | |
echo '' | |
while read command percent rss; do if [[ "${command}" != "COMMAND" ]]; then rss="$(bc <<< "scale=2;${rss}/1024")"; fi; printf "%-26s%-8s%s\n" "${command}" "${percent}" "${rss}"; done < <(ps - | |
A --sort -rss -o comm,pmem,rss | head -n 20) |