Skip to content

deseven/esupload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

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

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

# 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 or this article.
A complete guide in russian available here.

Releases

No releases published

Packages

No packages published

Languages