From b69d64aa26f7595eae098ab212e30e4c7b775746 Mon Sep 17 00:00:00 2001 From: Zergling_man Date: Mon, 11 Mar 2024 18:18:46 +1100 Subject: [PATCH] I don't know what I've done in a while --- .bashrc | 5 +++-- creds_getter.sh | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 4604528..f5bac90 100644 --- a/.bashrc +++ b/.bashrc @@ -21,6 +21,7 @@ function nts { yt-dlp --get-title --get-duration --get-id nicosearch10:"$*"; } function md { echo https://mangadex.org/title/$1; } function mds { curl -s "https://api.mangadex.org/manga?contentRating[]=safe&contentRating[]=suggestive&contentRating[]=erotica&contentRating[]=pornographic&title=$(sed s/\ /+/g <<< $*)" | jq ".data | .[] | .id,.attributes.title.en?,.attributes.description.en?,\"\""; } function mdi { curl -s "https://api.mangadex.org/manga/$1" | jq ".data | .id,.attributes.title.en?,.attributes.description.en?,\"\""; } +function mdc { mdi $(curl -s "https://api.mangadex.org/chapter/$1" | jq -r '.data.relationships[] | select (.type=="manga").id'); } alias mdesu='/home/wisknort/tinker/md/mdesu/mdesu' alias mdl="~/tinker/md/dler.py" function mdu { curl -si https://mangadex.org/title/$1 | grep -i location; } @@ -31,9 +32,9 @@ function lyrics { python ~/tinker/lyrics-fetcher/getlyrics.py $@; } function pulsemagix { ~/pulsemagix.sh $*; } alias search=~/tinker/tinyscripts/search.sh alias gitmk="git push -o repo.private=false -u master master" -alias wpfx="WINEPREFIX='$(pwd)/wpfx' wine" +alias wpfx='WINEPREFIX="$(pwd)/wpfx" wine' function update { scp -r * root@jasmine:"$(cat .update)"; } -function makepkgi { a="$(pwd)"; mkdir -p "/tmp/negros/src/$(basename "$a")"; cp PKGBUILD /tmp/negros/; cp -r * "/tmp/negros/src/$(basename "$a")/"; cd /tmp/negros/; rm "src/$(basename "$a")/PKGBUILD"; makepkg -${1:-R}; cp *.tar.zst "$a"; cd "$a"; rm -r /tmp/negros/; } +function makepkgi { a="$(pwd)"; mkdir -p "/tmp/negros/src/$(basename "$a")"; cp PKGBUILD /tmp/negros/; cp -r ./. "/tmp/negros/src/$(basename "$a")/"; cd /tmp/negros/; rm "src/$(basename "$a")/PKGBUILD"; makepkg -${1:-R}; cp *.tar.zst "$a"; cd "$a"; rm -rf /tmp/negros/; } #image shitposting function catbox { curl -F fileToUpload="@$*" -F reqtype=fileupload https://catbox.moe/user/api.php; echo ""; } alias shitpost="~/tinker/tinyscripts/shitpost.sh" diff --git a/creds_getter.sh b/creds_getter.sh index 3ce4b57..6dd214e 100644 --- a/creds_getter.sh +++ b/creds_getter.sh @@ -1,6 +1,7 @@ function _scan_config { - c="$HOME/.config/"; i=0 # for funny wc -l + c="$HOME/.config/" + i=0 # funny wc -l while read dirname; do if [ -d "$c$dirname" -a -a "$c$dirname/accounts" ]; then dirs[$i]="$dirname"