A tool for uploading files via SSH to your own server and pasting direct links in your clipboard.
Deisgned for OS X.
rsync
pv
terminal-notifier
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
- Create a directory called
.esupload
in your $HOME directory. - Create an empty profile file with the desired name in that directory, for example
screenshot
. - Provide all of the required params in that file (remote_host, remote_dir, remote_url).
- Launch esupload like that:
esupload screenshot path_to_file
- After a while you'll get a direct link to the file in your clipboard.
# 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
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.