An open API service indexing awesome lists of open source software.

https://github.com/deseven/esupload


https://github.com/deseven/esupload

bash clipboard screenshot ssh uploader

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

## esupload
A tool for uploading files via SSH to your own server and pasting direct links in your clipboard.
Deisgned for OS X.

## dependencies
rsync
pv
[terminal-notifier](https://github.com/julienXX/terminal-notifier)

## installation
via homebrew:
```brew install http://deseven.info/sys/esupload.rb```
manually:
```curl https://raw.githubusercontent.com/deseven/esupload/master/esupload > /usr/local/bin/esupload && chmod +x /usr/local/bin/esupload```

## configuration & usage
1. Create a directory called ```.esupload``` in your $HOME directory.
2. Create an empty profile file with the desired name in that directory, for example ```screenshot```.
3. Provide all of the required params in that file (remote_host, remote_dir, remote_url).
4. Launch esupload like that: ```esupload screenshot path_to_file```
5. After a while you'll get a direct link to the file in your clipboard.

## profile params
```sh
# required
remote_host=example.org # remote server
remote_dir=/remotedir # remote directory (your HTTP server root)
remote_url=http://example.org/share # remote server url for public links

# optional (defaults)
remote_user=$USER # ssh user name
remote_ident=$HOME/.ssh/id_rsa # ssh key
random_name=no # 'yes' for 16 symbols, 'namegen' for 3 words
chmod=u=rwx,g=rw,o=r # chmod remote file
is_screenshot=no # yes to resize retina screenshots
screenshot_direct=no # use screencapture to make screenshots directly
screenshot_direct_format=png # screenshot format
delete_after_upload=no # delete local file after uploading
track_progress=no # track uploading progress
track_interval=30 # tracking interval in sec
```

## automator integration
You can easilly use Automator for uploading screenshots or other files, for more info refer to [this](http://apple.blogoverflow.com/2012/06/folder-actions-tutorial-automation-meet-the-filesystem/) or [this](http://computers.tutsplus.com/tutorials/quick-tip-use-folder-actions-to-speed-up-productivity-in-os-x--mac-45394) article.
A complete guide in russian available [here](https://geektimes.ru/post/273944/).