Merge branch 'master' of gitea.moe:lamp/qonq
This commit is contained in:
commit
f7971fef0f
13
README.md
13
README.md
@ -67,3 +67,16 @@ server {
|
|||||||
return 308 https://$host$request_uri;
|
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
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user