From d1d7dd31262213f966d32ad9a97c54b6cf2c7ae2 Mon Sep 17 00:00:00 2001 From: gor_down Date: Tue, 14 Jan 2025 02:13:46 -0300 Subject: [PATCH] asd --- .local/bin/catboxupload | 2 ++ .scripts/reset-config-and-remote.sh | 8 ++++++++ .scripts/ytdl-song-upload.sh | 5 +++++ 3 files changed, 15 insertions(+) create mode 100755 .local/bin/catboxupload create mode 100755 .scripts/reset-config-and-remote.sh create mode 100755 .scripts/ytdl-song-upload.sh diff --git a/.local/bin/catboxupload b/.local/bin/catboxupload new file mode 100755 index 0000000..84c4790 --- /dev/null +++ b/.local/bin/catboxupload @@ -0,0 +1,2 @@ +#!/bin/bash +~/.scripts/bashed-catbox.sh file -s "$1" | xclip -d diff --git a/.scripts/reset-config-and-remote.sh b/.scripts/reset-config-and-remote.sh new file mode 100755 index 0000000..1138e3e --- /dev/null +++ b/.scripts/reset-config-and-remote.sh @@ -0,0 +1,8 @@ +alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' +config checkout --orphan newBranch +config add -A # Add all files and commit them +config commit -m "reinit" +config branch -D master # Deletes the master branch +config branch -m master # Rename the current branch to master +config push -f origin master # Force push master branch to github +config gc --aggressive --prune=all # remove the old files diff --git a/.scripts/ytdl-song-upload.sh b/.scripts/ytdl-song-upload.sh new file mode 100755 index 0000000..0230026 --- /dev/null +++ b/.scripts/ytdl-song-upload.sh @@ -0,0 +1,5 @@ +mkdir ~/.tmp +cd ~/.tmp +FILENAME="$(yt-dlp --extract-audio --audio-format mp3 --print filename "$1")" +catboxupload "$FILENAME" +rm "$FILENAME"