Merge branch 'master' of gitea.moe:lamp/qonq

This commit is contained in:
Lamp 2021-10-22 15:10:24 -05:00
commit f7971fef0f

@ -67,3 +67,16 @@ server {
return 308 https://$host$request_uri;
}
```
## Command lines for Mac
There is no ShareX for Mac so here are some command lines you can use with [iCanHazShortcut](https://github.com/deseven/icanhazshortcut)
```bash
# for fullscreen
SS=${TMPDIR}screenshot.png; screencapture -Cdt jpg $SS && URL=$(curl -H "Authentication: your_auth_token" -F "file=@$SS" https://qonq.gq/upload) && tr -d '\n' <<< $URL | pbcopy && osascript -e "display notification \"$URL\" with title \"Screenshot upload complete\"" && rm $SS
# for interactive
SS=${TMPDIR}screenshot.png; screencapture -idt png $SS && URL=$(curl -H "Authentication: your_auth_token" -F "file=@$SS" https://qonq.gq/upload) && tr -d '\n' <<< $URL | pbcopy && osascript -e "display notification \"$URL\" with title \"Screenshot upload complete\"" && rm $SS
```