I always forget to update this

This commit is contained in:
Zergling_man 2024-09-23 21:44:11 +10:00
parent ca76215a61
commit 88e0992d38
2 changed files with 9 additions and 7 deletions

14
.bashrc
View File

@ -18,13 +18,14 @@ function vid { mpv "https://inv.riverside.rocks/latest_version?id=$1&itag=22&loc
function nts { yt-dlp --get-title --get-duration --get-id nicosearch10:"$*"; }
#manga
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 { inf=$(curl -s "https://api.mangadex.org/chapter/$1"); jq '.data.attributes | .volume+" "+.chapter' <<< "$inf"; mdi $(jq -r '.data.relationships[] | select (.type=="manga").id' <<< "$inf"); }
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; }
alias mangadex='~tinker/tinyscripts/md.sh'
alias md='mangadex generate_link'
alias mds='mangadex search'
alias mdi='mangadex information'
alias mdc='mangadex chapter_information'
alias mdl='mangadex download'
alias mdu='mangadex update_from_v3_to_v5'
#strong utils
source ~/tinker/tinyscripts/creds_getter.sh
@ -39,6 +40,7 @@ function makepkgi { a="$(pwd)"; mkdir -p "/tmp/negros/src/$(basename "$a")"; cp
#image shitposting
function catbox { curl -F fileToUpload="@$*" -F reqtype=fileupload https://catbox.moe/user/api.php; echo ""; }
alias shitpost="~/tinker/tinyscripts/shitpost.sh"
function cheat { curl "cheat.sh/$*"; }
#fun
function space { python -c "print(\" \".join(\"$*\"))"; }

View File

@ -13,6 +13,6 @@ sp_targ="/static/pics/$sp_porn$sp_path"
scp "$sp_file" jasmine:"/srv/http$sp_targ"
ssh jasmine chown http:http "'/srv/http$sp_targ'"
ssh jasmine chmod 664 "'/srv/http$sp_targ'"
echo "http://rakka.au$sp_targ"
echo "http://rakka.au$sp_targ" | sed 's/ /%20/g' - -
#desu.si, catbox.moe