From 0bf822bd012e63fbfcc8bd6cab6c033d98e8cad2 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 24 Feb 2024 15:06:23 +0100 Subject: [ytlink] Add substitution for yt-local --- bin/common/ytlink | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/common') diff --git a/bin/common/ytlink b/bin/common/ytlink index a5e9bf0..48be9cf 100755 --- a/bin/common/ytlink +++ b/bin/common/ytlink @@ -8,6 +8,8 @@ inp="$1" [ "${inp:=$(clipo)}" ] || inp="$(cat /dev/stdin)" +# if link is http://127.0.0.1:9010/https://www.youtube.com/watch?v=7KpxsqwNF0o +inp="${inp#*/https://}" # remove util scheme inp="${inp#*//}" inp="https://youtube.com/${inp#*/}" -- cgit v1.2.3 From 5e044857f14932a950b12d61a1f1c58a934bc5e6 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 28 Feb 2024 10:34:10 +0100 Subject: added sshpass --- bin/common/sshpass | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bin/common/sshpass (limited to 'bin/common') diff --git a/bin/common/sshpass b/bin/common/sshpass new file mode 100755 index 0000000..71f8e93 --- /dev/null +++ b/bin/common/sshpass @@ -0,0 +1,6 @@ +#!/bin/sh +if [ "$PASSWORD" ] +then + pass show "$PASSWORD" && exit + exit 1 +fi -- cgit v1.2.3