Skip to content

Instantly share code, notes, and snippets.

while [ 1 ]; do M=`free | grep Mem | awk '{printf("%d",$4/$2 * 100.0)}'`;if [ $M -lt 10 ]; then echo "Memory under 10%"; fi; done
var yoxviewPath = getYoxviewPath();
var cssLink = top.document.createElement("link");
cssLink.setAttribute("rel", "Stylesheet");
cssLink.setAttribute("type", "text/css");
cssLink.setAttribute("href", yoxviewPath + "yoxview.css");
top.document.getElementsByTagName("head")[0].appendChild(cssLink);
function LoadScript(url)
{
document.write( '<scr' + 'ipt type="text/javascript" src="' + url + '"><\/scr' + 'ipt>' ) ;