sharefile

scripts for quickly sharing data to servers
git clone git://jb55.com/sharefile
Log | Files | Refs | README

README.md (2207B)


      1 
      2 # sharefile
      3 
      4   Simple script that uploads a file to your server and spits out a corresponding
      5   url
      6 
      7 ## Installation
      8 
      9 ### Git
     10 
     11     $ git clone https://github.com/jb55/sharefile /tmp/sharefile && cp /tmp/sharefile/sharefile ~/bin
     12 
     13   Or just download it directly and put it in your `PATH`, I don't care
     14 
     15 ### nix
     16 
     17     $ nix-env -f https://jb55.com/pkgs -iA sharefile
     18 
     19 ## Setup
     20 
     21   Put these in your `.profile` or `.bashrc` or `.zshrc` or something
     22 
     23     export SHAREFILE_HOST=me.com:/www/public/share/
     24     export SHAREFILE_URL=http://me.com/share/
     25 
     26   If you want to use `share_last_ss`:
     27 
     28     export SHARE_SS_DIR="$HOME/img/ss"
     29 
     30 ## Example
     31 
     32   Set the upload name
     33 
     34     $ sharefile -n desktop.png ~/scrots/2015-blah-derp.png
     35     http://me.com/share/desktop.png
     36 
     37   Copy link to clipboard
     38 
     39     $ sharefile ~/Documents/doc.txt | pbcopy
     40 
     41   Share the last screenshot
     42 
     43     $ share_last_ss | pbcopy
     44 
     45   Make some helpers!
     46 
     47 ```bash
     48 share() { sharefile "$@" | pbcopy }
     49 sharess() { share_last_ss | pbcopy }
     50 ```
     51 
     52 ## Reasons to use Dropbox for sharing now
     53 
     54   None
     55 
     56 ## License
     57 
     58     The MIT License (MIT)
     59 
     60     Copyright (c) 2014 William Casarin
     61 
     62     Permission is hereby granted, free of charge, to any person obtaining a copy
     63     of this software and associated documentation files (the "Software"), to deal
     64     in the Software without restriction, including without limitation the rights
     65     to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     66     copies of the Software, and to permit persons to whom the Software is
     67     furnished to do so, subject to the following conditions:
     68 
     69     The above copyright notice and this permission notice shall be included in
     70     all copies or substantial portions of the Software.
     71 
     72     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     73     IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     74     FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     75     AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     76     LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     77     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     78     THE SOFTWARE.