aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/gh-clone-all11
-rwxr-xr-xbin/yt-download-mp36
2 files changed, 17 insertions, 0 deletions
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
+