From 2e2c0b35e6c6f84a5ff2c47defda33088f256b91 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Mon, 5 Feb 2024 17:52:16 -0500 Subject: Add two small scripts --- bin/gh-clone-all | 11 +++++++++++ bin/yt-download-mp3 | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 bin/gh-clone-all create mode 100755 bin/yt-download-mp3 (limited to 'bin') diff --git a/bin/gh-clone-all b/bin/gh-clone-all new file mode 100644 index 0000000..742189b --- /dev/null +++ b/bin/gh-clone-all @@ -0,0 +1,11 @@ +#!/bin/sh +# +# Clone down all repositories from a GitHub entity. +# +# Args: +# $1: The entity name to clone. i.e. github.com/eugenetriguba => eugenetriguba + +gh repo list "$1" --limit 10000 | while read -r repo _; do + gh repo clone "$repo" "$repo" +done + diff --git a/bin/yt-download-mp3 b/bin/yt-download-mp3 new file mode 100755 index 0000000..8f5e144 --- /dev/null +++ b/bin/yt-download-mp3 @@ -0,0 +1,6 @@ +#!/bin/sh + +for url in "$@"; do + yt-dlp -x --audio-format mp3 "$url" +done + -- cgit v1.2.3