From aa38d3d5afec8860cf7a8f9e4ced88b620ec2b0f Mon Sep 17 00:00:00 2001 From: jorgevasquezp Date: Wed, 20 Mar 2019 19:28:25 -0700 Subject: [PATCH 1/6] script to inyeract with youtube more efficently --- bash/getyt.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bash/getyt.sh diff --git a/bash/getyt.sh b/bash/getyt.sh new file mode 100755 index 0000000..ff14f2d --- /dev/null +++ b/bash/getyt.sh @@ -0,0 +1,10 @@ +qurl="https://www.youtube.com/results?search_query=" +qstring="Octonauts Poison Dart Frogs" + +for i; + + do temp=$(curl -s $qurl$(echo $i | sed 's/\s/+/g') | grep -o href\=\"\/watch\?v\=[^\"]* | head -1) + code=$(echo $temp | sed 's/href\=\"\/watch\>?v\=//') + echo $code + youtube-dl -f bestvideo+bestaudio "https://www.youtube.com/watch?v="$code +done; From a0c3bc74359b1b69a4753dd796f26d2a1f61de4c Mon Sep 17 00:00:00 2001 From: jorgevasquezp Date: Tue, 9 Jul 2019 09:56:53 -0700 Subject: [PATCH 2/6] included a script to make a folder for today --- bash/make_today_folder.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bash/make_today_folder.sh diff --git a/bash/make_today_folder.sh b/bash/make_today_folder.sh new file mode 100755 index 0000000..a1e292b --- /dev/null +++ b/bash/make_today_folder.sh @@ -0,0 +1,5 @@ +#!/usr/bin/bash +TODAY_FOLDER=$(date +"%m%d%y") +if [ ! -d "$TODAY_FOLDER" ]; then + mkdir "$TODAY_FOLDER" +fi From 92019ccecac6123066664374d3862e9fa3433c1d Mon Sep 17 00:00:00 2001 From: jorgevasquezp Date: Mon, 23 Sep 2019 13:04:41 -0700 Subject: [PATCH 3/6] fixed the wacom script, to match new xsetwacom standards --- bash/fix_wacom.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bash/fix_wacom.sh b/bash/fix_wacom.sh index d48fbf5..061d29d 100755 --- a/bash/fix_wacom.sh +++ b/bash/fix_wacom.sh @@ -4,7 +4,5 @@ #wacom_id="Wacom Intuos Pro M Pen stylus" #wacom_id=$(xsetwacom --list devices | grep stylus | grep -o [0-9]. | sed 's/\t//') wacom_id=$(xsetwacom --list devices | grep stylus | grep 'id\: [0-9].' -o | grep [0-9]. -o) -xsetwacom --set "$wacom_id" button 2 3 -xsetwacom --set "$wacom_id" button 3 2 - - +xsetwacom --set "$(($wacom_id + 0))" button 2 3 +xsetwacom --set "$(($wacom_id + 0))" button 3 2 From 35213a8f68c159f10f8f5df0b1bf289b09fb0dfd Mon Sep 17 00:00:00 2001 From: jorgevasquezp Date: Thu, 23 Jan 2020 15:18:36 -0800 Subject: [PATCH 4/6] added more options to ytdlpl --- bash/ytdlpl.sh | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/bash/ytdlpl.sh b/bash/ytdlpl.sh index e3bf75a..8898fde 100755 --- a/bash/ytdlpl.sh +++ b/bash/ytdlpl.sh @@ -1,8 +1,26 @@ +format=bestvideo+bestaudio +format=22 +while getopts ":a" opt; do + case $opt in + a) + format=bestaudio + ;; + \?) + echo "Invalid option: -$OPTARG" >&2 + ;; + esac +done + export IFS=$'\n'; for i; do - #youtube-dl -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -f bestaudio "$i" - youtube-dl -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -f bestvideo+bestaudio "$i" + #Audio--> + youtube-dl -x --audio-format vorbis --add-metadata --xattrs --embed-subs --embed-thumbnail --all-subs -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -i -f bestaudio --audio-quality 192k "$i" + #youtube-dl --xattrs --embed-subs --embed-thumbnail --all-subs -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -i -f bestaudio "$i" + #youtube-dl -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -f $a "$i" + #youtube-dl --add-metadata --xattrs --embed-subs --embed-thumbnail --all-subs -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -i -f bestvideo+bestaudio "$i" + #youtube-dl --add-metadata --xattrs --embed-subs --all-subs -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -f bestvideo+bestaudio "$i" + #VIDEO--> + #youtube-dl --add-metadata --xattrs --embed-subs --all-subs -o "%(playlist)s/%(playlist_index)s - %(title)s - %(format)s.%(ext)s" -i -f $format "$i" + done; - - From 50a6e77395a5cd854a4cda4ade98f3938ff02f23 Mon Sep 17 00:00:00 2001 From: jorgevasquezp Date: Thu, 23 Jan 2020 15:19:42 -0800 Subject: [PATCH 5/6] added a script to automatically download files from a wiredrive link --- bash/get_wd.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 bash/get_wd.sh diff --git a/bash/get_wd.sh b/bash/get_wd.sh new file mode 100755 index 0000000..2231ee9 --- /dev/null +++ b/bash/get_wd.sh @@ -0,0 +1,7 @@ +#/usr/bin/bash +for i; + do + link=$(curl $i | grep -o --color=auto 'http[^"]*\=view' | sed 's,\\,,g'); + wget $link; + done +for i in *mp4*; do mv $i ${i%\?*}; done From 74a5e9310358a4df4e187a16e990285cb78790b0 Mon Sep 17 00:00:00 2001 From: jorgevasquezp Date: Thu, 23 Jan 2020 15:20:34 -0800 Subject: [PATCH 6/6] Updated som of the after effects scripts --- jsx/EXP_centerTextLayerAnchor.jsx | 0 jsx/MKN_DC_GEN_EP_FullFrame_ToolkitScript.jsx | 0 jsx/ReplaceAllFiles.jsx | 0 jsx/afx_proto_tools.jsx | 0 jsx/dependencySearcher.jsx | 0 jsx/fontSearcher.jsx | 0 6 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 jsx/EXP_centerTextLayerAnchor.jsx mode change 100644 => 100755 jsx/MKN_DC_GEN_EP_FullFrame_ToolkitScript.jsx mode change 100644 => 100755 jsx/ReplaceAllFiles.jsx mode change 100644 => 100755 jsx/afx_proto_tools.jsx mode change 100644 => 100755 jsx/dependencySearcher.jsx mode change 100644 => 100755 jsx/fontSearcher.jsx diff --git a/jsx/EXP_centerTextLayerAnchor.jsx b/jsx/EXP_centerTextLayerAnchor.jsx old mode 100644 new mode 100755 diff --git a/jsx/MKN_DC_GEN_EP_FullFrame_ToolkitScript.jsx b/jsx/MKN_DC_GEN_EP_FullFrame_ToolkitScript.jsx old mode 100644 new mode 100755 diff --git a/jsx/ReplaceAllFiles.jsx b/jsx/ReplaceAllFiles.jsx old mode 100644 new mode 100755 diff --git a/jsx/afx_proto_tools.jsx b/jsx/afx_proto_tools.jsx old mode 100644 new mode 100755 diff --git a/jsx/dependencySearcher.jsx b/jsx/dependencySearcher.jsx old mode 100644 new mode 100755 diff --git a/jsx/fontSearcher.jsx b/jsx/fontSearcher.jsx old mode 100644 new mode 100755