From a93f0542ce9312e78087ea0e0f9c18f47a853795 Mon Sep 17 00:00:00 2001 From: yorch Date: Tue, 19 Apr 2016 18:23:28 -0700 Subject: [PATCH 1/4] added a folder for aftereffects useful stuff, and added some old bash ones I hade laying around --- bash/get_deliveries.sh | 2 ++ bash/get_videos.sh | 6 ++++++ bash/make_h264.sh | 4 ++++ bash/make_lossless.sh | 4 ++++ bash/mount_whitehorse.command | 17 ++++++++++++++-- bash/mount_whitehorse_ALT.command | 34 +++++++++++++++++++++++++++++++ jsx/dependencySearcher.jsx | 1 + 7 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 bash/get_deliveries.sh create mode 100755 bash/get_videos.sh create mode 100755 bash/make_h264.sh create mode 100755 bash/make_lossless.sh create mode 100755 bash/mount_whitehorse_ALT.command create mode 100644 jsx/dependencySearcher.jsx diff --git a/bash/get_deliveries.sh b/bash/get_deliveries.sh new file mode 100644 index 0000000..1788e69 --- /dev/null +++ b/bash/get_deliveries.sh @@ -0,0 +1,2 @@ +search_string=$1; +for i in $(find . -type d -maxdepth 1 -name '*$search_String*'); do find "$i" -type d -name '*ivery*' -exec find {} -name '*mov' \;; done diff --git a/bash/get_videos.sh b/bash/get_videos.sh new file mode 100755 index 0000000..f83abc8 --- /dev/null +++ b/bash/get_videos.sh @@ -0,0 +1,6 @@ +for i in $(cat videos); + do + youtube-dl -F $i; + echo "select quality"; + read q;youtube-dl -v -j -J -f $q $i; + done diff --git a/bash/make_h264.sh b/bash/make_h264.sh new file mode 100755 index 0000000..bb29bef --- /dev/null +++ b/bash/make_h264.sh @@ -0,0 +1,4 @@ +for i; + do ffmpeg -i "$i" -c:v libx264 -profile:v main -pix_fmt yuv420p -q 0 -strict -2 "${i%.*}_h264.mov" ; +done; + diff --git a/bash/make_lossless.sh b/bash/make_lossless.sh new file mode 100755 index 0000000..7f73878 --- /dev/null +++ b/bash/make_lossless.sh @@ -0,0 +1,4 @@ +for i; + do ffmpeg -i "$i" -c:v libschroedinger -qscale:v 0 -c:a flac -qscale:a 0 "${i%.*}_Dirac+Flac.mkv" ; +done; + diff --git a/bash/mount_whitehorse.command b/bash/mount_whitehorse.command index 6710827..f14e80f 100755 --- a/bash/mount_whitehorse.command +++ b/bash/mount_whitehorse.command @@ -10,12 +10,25 @@ mkdir /Volumes/whitehorse mount -t smbfs //mak:ale2312x@makineisilon/whitehorse /Volumes/whitehorse echo mounting pegasus mkdir /Volumes/pegasus -mount -t smbfs //jorge:Ladilla2@mak-nas/pegasus /Volumes/pegasus +mount -t smbfs //eduardo:"pgss%401046"@mak-nas/pegasus /Volumes/pegasus echo done. sleep 1 open -a trolCommander -open -a adium +echo ' /$$$$$$$ /$$ /$$ /$$ /$$ /$$$$$$ /$$ /$$ /$$$$$$ /$$ /$$'; +echo '| $$__ $$| $$ | $$| $$$ | $$ /$$__ $$| $$ | $$ |_ $$_/| $$$ | $$'; +echo '| $$ \ $$| $$ | $$| $$$$| $$| $$ \__/| $$ | $$ | $$ | $$$$| $$'; +echo '| $$$$$$$/| $$ | $$| $$ $$ $$| $$ | $$$$$$$$ | $$ | $$ $$ $$'; +echo '| $$____/ | $$ | $$| $$ $$$$| $$ | $$__ $$ | $$ | $$ $$$$'; +echo '| $$ | $$ | $$| $$\ $$$| $$ $$| $$ | $$ | $$ | $$\ $$$'; +echo '| $$ | $$$$$$/| $$ \ $$| $$$$$$/| $$ | $$ /$$$$$$| $$ \ $$'; +echo '|__/ \______/ |__/ \__/ \______/ |__/ |__/ |______/|__/ \__/'; + +log_punch.sh in + +sleep 25 + +"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" https://timeandlabor.paychex.com/secure/Login.aspx?Alias=0083A8306102 --args --"profile-direory"="Profile 2" > /tmp/chromelog.log & stty echo exit diff --git a/bash/mount_whitehorse_ALT.command b/bash/mount_whitehorse_ALT.command new file mode 100755 index 0000000..7f43eb9 --- /dev/null +++ b/bash/mount_whitehorse_ALT.command @@ -0,0 +1,34 @@ +stty -echo +echo Waiting for silly MAC lag... +for i in {1..3}; +do + echo ...$i + sleep 1 +done +echo mounting whitehorse +mkdir /Volumes/whitehorses +mount -t smbfs //mak:ale2312x@makineisilon/whitehorse /Volumes/whitehorses +echo mounting pegasus +mkdir /Volumes/pegassus +mount -t smbfs //eduardo:"pgss%401046"@mak-nas/pegasus /Volumes/pegassus +echo done. +sleep 1 +open -a trolCommander + +echo ' /$$$$$$$ /$$ /$$ /$$ /$$ /$$$$$$ /$$ /$$ /$$$$$$ /$$ /$$'; +echo '| $$__ $$| $$ | $$| $$$ | $$ /$$__ $$| $$ | $$ |_ $$_/| $$$ | $$'; +echo '| $$ \ $$| $$ | $$| $$$$| $$| $$ \__/| $$ | $$ | $$ | $$$$| $$'; +echo '| $$$$$$$/| $$ | $$| $$ $$ $$| $$ | $$$$$$$$ | $$ | $$ $$ $$'; +echo '| $$____/ | $$ | $$| $$ $$$$| $$ | $$__ $$ | $$ | $$ $$$$'; +echo '| $$ | $$ | $$| $$\ $$$| $$ $$| $$ | $$ | $$ | $$\ $$$'; +echo '| $$ | $$$$$$/| $$ \ $$| $$$$$$/| $$ | $$ /$$$$$$| $$ \ $$'; +echo '|__/ \______/ |__/ \__/ \______/ |__/ |__/ |______/|__/ \__/'; + +log_punch.sh in + +sleep 25 + +"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" https://timeandlabor.paychex.com/secure/Login.aspx?Alias=0083A8306102 --args --"profile-direory"="Profile 2" > /tmp/chromelog.log & +stty echo + +exit diff --git a/jsx/dependencySearcher.jsx b/jsx/dependencySearcher.jsx new file mode 100644 index 0000000..e0bedcd --- /dev/null +++ b/jsx/dependencySearcher.jsx @@ -0,0 +1 @@ +//Walk the items. search_string = "Element"; project_items = app.project.items for ( var i = 1; i <= project_items.length ; i ++) { var item = project_items[i]; if( item.typeName == "Composition" ) { var comp = item; //alert( comp.name ); var comp = item; for ( var j = 1 ; j <= comp.numLayers ; j ++ ) { var layer = comp.layer(j); if ( layer.matchName == "ADBE AV Layer") //Only go into layers... not cameras and lights. { var effects = layer.property("Effects"); //alert( comp.name + " , " + layer.name ); for ( var k = 1 ; k <= effects.numProperties ; k ++ ) { var effect = effects.property(k); if ( effect.name == search_string ) { layer.comment = "Contains " + effect.name + " layer."; comp.comment = "Contains " + effect.name + " layer."; } //alert( comp.name + " , " + layer.name + " , " + effect.name ); } } } } } \ No newline at end of file From aba953b4a23a20e20b098cecd0d99b54a191801f Mon Sep 17 00:00:00 2001 From: yorch Date: Tue, 19 Apr 2016 18:28:44 -0700 Subject: [PATCH 2/4] Refreshed the moun_whitehorse command to mount pegasus as well --- ...e_old.command => mount_whitehorse.command} | 0 bash/mount_whitehorse_ALT.command | 34 ------------------- 2 files changed, 34 deletions(-) rename bash/{mount_whitehorse_old.command => mount_whitehorse.command} (100%) delete mode 100755 bash/mount_whitehorse_ALT.command diff --git a/bash/mount_whitehorse_old.command b/bash/mount_whitehorse.command similarity index 100% rename from bash/mount_whitehorse_old.command rename to bash/mount_whitehorse.command diff --git a/bash/mount_whitehorse_ALT.command b/bash/mount_whitehorse_ALT.command deleted file mode 100755 index 7f43eb9..0000000 --- a/bash/mount_whitehorse_ALT.command +++ /dev/null @@ -1,34 +0,0 @@ -stty -echo -echo Waiting for silly MAC lag... -for i in {1..3}; -do - echo ...$i - sleep 1 -done -echo mounting whitehorse -mkdir /Volumes/whitehorses -mount -t smbfs //mak:ale2312x@makineisilon/whitehorse /Volumes/whitehorses -echo mounting pegasus -mkdir /Volumes/pegassus -mount -t smbfs //eduardo:"pgss%401046"@mak-nas/pegasus /Volumes/pegassus -echo done. -sleep 1 -open -a trolCommander - -echo ' /$$$$$$$ /$$ /$$ /$$ /$$ /$$$$$$ /$$ /$$ /$$$$$$ /$$ /$$'; -echo '| $$__ $$| $$ | $$| $$$ | $$ /$$__ $$| $$ | $$ |_ $$_/| $$$ | $$'; -echo '| $$ \ $$| $$ | $$| $$$$| $$| $$ \__/| $$ | $$ | $$ | $$$$| $$'; -echo '| $$$$$$$/| $$ | $$| $$ $$ $$| $$ | $$$$$$$$ | $$ | $$ $$ $$'; -echo '| $$____/ | $$ | $$| $$ $$$$| $$ | $$__ $$ | $$ | $$ $$$$'; -echo '| $$ | $$ | $$| $$\ $$$| $$ $$| $$ | $$ | $$ | $$\ $$$'; -echo '| $$ | $$$$$$/| $$ \ $$| $$$$$$/| $$ | $$ /$$$$$$| $$ \ $$'; -echo '|__/ \______/ |__/ \__/ \______/ |__/ |__/ |______/|__/ \__/'; - -log_punch.sh in - -sleep 25 - -"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" https://timeandlabor.paychex.com/secure/Login.aspx?Alias=0083A8306102 --args --"profile-direory"="Profile 2" > /tmp/chromelog.log & -stty echo - -exit From 659928d0a0e41b25bb95a53128a1b54c28f481de Mon Sep 17 00:00:00 2001 From: yorch Date: Wed, 20 Apr 2016 10:16:23 -0700 Subject: [PATCH 3/4] Fixed mounting of whitehorse & pegasus --- bash/mount_whitehorse.command | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bash/mount_whitehorse.command b/bash/mount_whitehorse.command index 60c41f0..f14e80f 100755 --- a/bash/mount_whitehorse.command +++ b/bash/mount_whitehorse.command @@ -10,11 +10,7 @@ mkdir /Volumes/whitehorse mount -t smbfs //mak:ale2312x@makineisilon/whitehorse /Volumes/whitehorse echo mounting pegasus mkdir /Volumes/pegasus -<<<<<<< HEAD mount -t smbfs //eduardo:"pgss%401046"@mak-nas/pegasus /Volumes/pegasus -======= -mount -t smbfs //jorge:Ladilla3@mak-nas/pegasus /Volumes/pegasus ->>>>>>> dee053f9f1adf232abbf990e89d87ba750dc970e echo done. sleep 1 open -a trolCommander @@ -28,11 +24,8 @@ echo '| $$ | $$ | $$| $$\ $$$| $$ $$| $$ | $$ | $$ | $$\ $$$ echo '| $$ | $$$$$$/| $$ \ $$| $$$$$$/| $$ | $$ /$$$$$$| $$ \ $$'; echo '|__/ \______/ |__/ \__/ \______/ |__/ |__/ |______/|__/ \__/'; -<<<<<<< HEAD log_punch.sh in -======= ->>>>>>> dee053f9f1adf232abbf990e89d87ba750dc970e sleep 25 "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" https://timeandlabor.paychex.com/secure/Login.aspx?Alias=0083A8306102 --args --"profile-direory"="Profile 2" > /tmp/chromelog.log & From a4f1bdc7ca935a4d555d2c313b1317af6b687756 Mon Sep 17 00:00:00 2001 From: yorch Date: Wed, 20 Apr 2016 10:17:34 -0700 Subject: [PATCH 4/4] Added an alternate command for mounting whitehorse and pegasus to different locations to be able to try collects with dependencies. (AFX) --- bash/mount_whitehorse_ALT.command | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 bash/mount_whitehorse_ALT.command diff --git a/bash/mount_whitehorse_ALT.command b/bash/mount_whitehorse_ALT.command new file mode 100644 index 0000000..5326f60 --- /dev/null +++ b/bash/mount_whitehorse_ALT.command @@ -0,0 +1,34 @@ +stty -echo +echo Waiting for silly MAC lag... +for i in {1..3}; +do + echo ...$i + sleep 1 +done +echo mounting whitehorse +mkdir /Volumes/whthrs +mount -t smbfs //mak:ale2312x@makineisilon/whitehorse /Volumes/whthrs +echo mounting pegasus +mkdir /Volumes/pgss +mount -t smbfs //eduardo:"pgss%401046"@mak-nas/pegasus /Volumes/pgss +echo done. +sleep 1 +open -a trolCommander + +echo ' /$$$$$$$ /$$ /$$ /$$ /$$ /$$$$$$ /$$ /$$ /$$$$$$ /$$ /$$'; +echo '| $$__ $$| $$ | $$| $$$ | $$ /$$__ $$| $$ | $$ |_ $$_/| $$$ | $$'; +echo '| $$ \ $$| $$ | $$| $$$$| $$| $$ \__/| $$ | $$ | $$ | $$$$| $$'; +echo '| $$$$$$$/| $$ | $$| $$ $$ $$| $$ | $$$$$$$$ | $$ | $$ $$ $$'; +echo '| $$____/ | $$ | $$| $$ $$$$| $$ | $$__ $$ | $$ | $$ $$$$'; +echo '| $$ | $$ | $$| $$\ $$$| $$ $$| $$ | $$ | $$ | $$\ $$$'; +echo '| $$ | $$$$$$/| $$ \ $$| $$$$$$/| $$ | $$ /$$$$$$| $$ \ $$'; +echo '|__/ \______/ |__/ \__/ \______/ |__/ |__/ |______/|__/ \__/'; + +log_punch.sh in + +sleep 25 + +"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" https://timeandlabor.paychex.com/secure/Login.aspx?Alias=0083A8306102 --args --"profile-direory"="Profile 2" > /tmp/chromelog.log & +stty echo + +exit