Coder Social home page Coder Social logo

transfer.sh-zsh's Introduction

Advanced transfer.sh script for ZSH

For transfer.sh

Requires:

  • cat
  • curl
  • zip
  • gpg (for local encryption if you like)

Usage

source transfer
transfer [-d <d>] [-t <n>] [-q/-s] [-p [<password>]] <file/dir>
Usage of transfer

transfer [-t <n>] [-d <d>] [-p <s>|-e] <filename/folder>

--times/-t <n>      limit to n downloads
--days/-d <n>       limit to n days
--recipient/-r <s> encrypt for recipient
--password/-p <s>   encrypt using gpg and the specified password
--encrypt/-e        encrypt using gpg and a generated password
-q/-s               only print download url to stdout,
                    use -qq/-ss to disable progress

Environment:
 - TRANSFER_BASE_URL     The baseurl of the transfer server,
                         default transfer.sh
 - TRANSFER_TRANSFORMER  Default is cat, which is replaced by
                         a proper gpg call, if -r/-e/-p is
                         specified, default is cat

Special options (environment)

You can set the TRANSFER_BASE_URL to point to your transfer.sh instance. By default the content is not transformed before uploading (just piping it through cat), TRANSFER_TRANSFORMER could be set to perform any command which accepts stdin and outputs on stdout to transform the data on-the-fly. This mechanism will also be used for GPG encryption. e.g. you could perform a rot13 operation, by the following two lines:

export TRANSFER_TRANSFORMER="tr 'A-Za-z' 'N-ZA-Mn-za-m'"
transfer README.md

Or any other encrypting call.

Consider this not as real feature, but more a thing to play around :)

transfer.sh-zsh's People

Contributors

m42e avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.