Browse Source

2nd commit

master
themadman 4 years ago
parent
commit
b2ee2fa017
2 changed files with 47 additions and 0 deletions
  1. 11
    0
      LICENCE
  2. 36
    0
      uguucho

+ 11
- 0
LICENCE View File

@@ -0,0 +1,11 @@
My Dick in Your Face Public Licence (MDYFPL) v1.0


Copyright © 2017 themadman


Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The user (any indevidual who uses copies, modifies, merges, publishes, distributes, sublicenses, and/or sells copies of the Software) is obliged to give permission to allow the author's dick in the user's face.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 36
- 0
uguucho View File

@@ -0,0 +1,36 @@
#!/usr/bin/bash
LICENCE="MDYFPL v1.0"


if [[ $1 == -s ]]

then
scrot -s /tmp/uguuscrot.png
zenity --title uguucho --question --text="Are you sure you wish to upload snapshot?"

if [ $? == 0 ]
then

OUTPUTAS=$(torsocks curl -F name=scrot.png -F file=@/tmp/uguuscrot.png https://uguu.se/api.php?d=upload-tool)
zenity --title uguucho --info --text=$OUTPUTAS

fi

elif [[ $1 == -F ]]
then
scrot /tmp/uguuscrot.png
zenity --title uguucho --question --text="Are you sure you wish to upload your _FULLSCREEEN_ screenshot?"

if [ $? -eq 0 ]
then

OUTPUTAS=$(torsocks curl -F name=scrot.png -F file=@/tmp/uguuscrot.png https://uguu.se/api.php?d=upload-tool)
zenity --title uguucho --info --text=$OUTPUTAS

fi

else

OUTPUTAS=$(torsocks curl -F name=$1 -F file=@$1 https://uguu.se/api.php?d=upload-tool)
zenity --title uguucho --info --text=$OUTPUTAS
fi

Loading…
Cancel
Save