Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Copyright (c) 2016 Phillip Tang <tangphillip@gmail.com>
- #
- # 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 above copyright notice and this permission notice shall be included
- # in all copies or substantial portions of the Software.
- #
- # 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.
- # Based the work of Bart Nagel <bart@tremby.net>
- # If you have rate limit issues, get your own key at http://api.imgur.com/
- #Default Key, can get rate limit if too many people use script
- #CLIENT_ID="9657b96ca0b7f38"
- #My custom key, no rate limit issues :)
- CLIENT_ID="3a6e072f5f1f717"
- CLIPBOARD=true
- clip() {
- xsel -bps
- }
- # function to output usage instructions
- function usage {
- echo "Usage: $(basename "$0") [filenames]
- Upload images to imgur, print their URLs to stdout, and print the delete pages URL to stderr.
- If you're on a Mac or have xsel/xclip, copy the images URLs to the clipboard.
- If you don't especify any filename, they will be read from standard input." >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement