Code Monkey home page Code Monkey logo

tupload's Introduction

TUpload

CircleCI

Upload files and screenshots to a server using rsync

Usage

upload / tupload

usage: upload [-h] [--progress] [--to TO] file

positional arguments:
  file

optional arguments:
  -h, --help  show this help message and exit
  --progress  Show Upload Progress
  --to TO     Configuration to upload to
upload README.md

upload README.md --to drop

screenshot

usage: screenshot [-h] [--progress] [--to TO] [-w] [-a] [-p]

optional arguments:
  -h, --help            show this help message and exit
  --progress            Show Upload Progress
  --to TO               Configuration to upload to
  -w, --window
  -a, --area
  -p, --include-pointer
screenshot
 
screenshot -wp 

screenshot --to pics

Configuration

Configuration is done using the config file at /etc/.upload, in JSON. Here's an example.

Each top-level key is the name of a config, each config must define 3 keys:

  • destination_server: The address to connect to. User information can be passed using standard SSH syntax.
  • viewable_root: The remote path the file can be viewed at. The file name will be joined to the end of this.
  • remote_path: The directory on the server to put the file, should be writable by the connecting user

Optional Keys

  • screenshot_preset: Filename pattern to user for screenshot.
    • hex: 8 random lowercase hex characters
    • timestamp: unix timestamp of capture time

tupload's People

Contributors

realorangeone avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

5l1v3r1

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.