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"