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
<?php | |
$app = $argv[1]; | |
print exec('hostinfo | grep memory | perl -ne \'$used = `ps aux | grep ' . | |
$app . ' | awk \'"\'"\'{x+=\$4} END{print x/100}\'"\'"\'` and /Primary memory available: (\d+)/ and printf("' . | |
$app . ' is using approximately ") and printf($1*$used) and print ("GB\n");\''); |
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
<?php | |
$xml = simplexml_load_file($argv[1]); | |
$media = array(); | |
$video = array(); | |
$audio = array(); | |
foreach ($xml->sequence->media->video->track->clipitem as $item) { | |
if (trim($item->name->__toString())) { |
NewerOlder