diff --git a/.bashrc b/.bashrc index 950c531..29f0d4e 100644 --- a/.bashrc +++ b/.bashrc @@ -38,9 +38,19 @@ alias wpfx2='WINEPREFIX="$(pwd)/wpfx2" 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" "src/$(basename "$a")"/*.tar.zst; 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 ""; } +function catbox +{ + if [ "$1" = '-t' ]; then + shift + curl https://litterbox.catbox.moe/resources/internals/api.php -F time=12h -F reqtype="@$*" + else + curl -F fileToUpload="@$*" -F reqtype=fileupload https://catbox.moe/user/api.php + fi + echo "" +} alias shitpost="~/tinker/tinyscripts/shitpost.sh" function cheat { curl "cheat.sh/$*"; } +function unroll { magick $1 -layers CompareAny blah.png; } #fun function space { python -c "print(\" \".join(\"$*\"))"; } diff --git a/search.sh b/search.sh index 0f7aa22..dc3681e 100755 --- a/search.sh +++ b/search.sh @@ -12,6 +12,8 @@ sources[wiby]="http://wiby.me/?q=" sources[arch]="https://wiki.archlinux.org/index.php?go=Go&search=" sources[mal]="https://myanimelist.net/anime.php?cat=anime&type=0&score=0&status=0&p=0&r=0&sm=0&sd=0&sy=0&em=0&ed=0&ey=0&c%5B%5D=a&c%5B%5D=b&c%5B%5D=c&c%5B%5D=f&q=" sources[meta]="https://metager.org/meta/meta.ger3?eingabe=" +sources[jaded]="http://thejadednetwork.com/sfx/search/?submitSearch=Search+SFX&x=&keyword=" +sources[vndb]="https://vndb.org/v?sq=" #https://apibay.org/q.php?cat=&q= #https://apibay.org/t.php?id= mag() { echo "magnet:?xt=urn:btih:$1&dn=${*:2}&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.bittor.pw%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=udp%3A%2F%2Fbt.xxx-tracker.com%3A2710%2Fannounce&tr=udp%3A%2F%2Fpublic.popcorn-tracker.org%3A6969%2Fannounce&tr=udp%3A%2F%2Feddie4.nl%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&tr=udp%3A%2F%2Fp4p.arenabg.com%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.tiny-vps.com%3A6969%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce"; }