Add/update functions

This commit is contained in:
Alex 2020-07-19 00:44:33 +02:00
parent 12bc8dff99
commit aed12ad223
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
4 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,9 @@
local -a urls
local -a fetch
local page=0
while [ ${page} -eq 0 ] || [ ${#fetch} -eq 100 ]; do
fetch=($(curl -sZSGL "https://gelbooru.com/index.php?q=index&s=post&page=dapi&json=1&pid=$page&tags=${1}" | jq -r ".[].file_url"))
urls+=($fetch)
page=$(($page + 1))
done
[ ${#urls} -gt 0 ] && curl -L\# --remote-name-all $urls

1
custom/functions/mplay Normal file
View File

@ -0,0 +1 @@
busctl call --no-pager --user org.mpris.MediaPlayer2.mpv /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player OpenUri s "$1"

1
custom/functions/paste Normal file
View File

@ -0,0 +1 @@
curl -F'file=@-' $@

View File

@ -0,0 +1 @@
git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all