I hereby claim:
- I am willvincent on github.
#!/bin/bash | |
USAGE="$0 [-u <user> -p <password> -h <host> -P <PORT> -d <database> -D <destination/directory/without/trailing/slash>]" | |
DESTINATION=`pwd` | |
USER=root | |
PASS=root | |
HOST=localhost | |
PORT=3306 | |
# SPECIFY HOW LONG TO RETAIN BACKUPS |
<?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");\''); |
<?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())) { |
#!/bin/bash | |
# These paths should either be relative to the current directory | |
# or full system paths. | |
SOURCE_PATH="Camera_Original" | |
DEST_PATH="Prores" | |
# wildcard for files to process | |
FILES="*.MXF" |