TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Command-line file sharing

226 pointsby masolinoover 10 years ago

21 comments

andy_pppover 10 years ago
That&#x27;s great, you can encrypt stuff then as follows (on a Mac).<p><pre><code> brew install gpg gpg --gen-key gpg -ac &lt; file.unencrypted | curl http:&#x2F;&#x2F;transfer.sh&#x2F;file.encrypted -T - </code></pre> To decrypt, take the returned URL:<p><pre><code> curl https:&#x2F;&#x2F;transfer.sh&#x2F;1nKXr&#x2F;file.encrypted | gpg -ad </code></pre> Someone can probably improve this!
评论 #8387636 未加载
评论 #8387760 未加载
Sir_Cmpwnover 10 years ago
My usual procedure goes something like this:<p><pre><code> rsync -P foobar.png personal.sircmpwn.com:&#x2F;var&#x2F;html&#x2F; # &quot;hey dude, go download http:&#x2F;&#x2F;personal.sircmpwn.com&#x2F;foobar.png&quot;</code></pre>
评论 #8389848 未加载
snorrahover 10 years ago
I like in the little example animation, hello.txt is uploaded and a url is returned, but then a completely different url is used to get the hello.txt back.
评论 #8387628 未加载
joelthelionover 10 years ago
How do you intend to make money?
评论 #8388392 未加载
评论 #8389719 未加载
ankushioover 10 years ago
I use CloudApp for OS X for sharing files and it&#x27;s pretty convenient. The best part is sharing screenshots with it. You take a screenshot, it is automatically uploaded to the cloud (no pun intended) and the link is copied to your Clipboard. You could not ask for anything simpler.
评论 #8388581 未加载
评论 #8388067 未加载
评论 #8387641 未加载
评论 #8388908 未加载
matiover 10 years ago
<a href="http://curl.io/" rel="nofollow">http:&#x2F;&#x2F;curl.io&#x2F;</a>
评论 #8387657 未加载
评论 #8387498 未加载
antimoraover 10 years ago
I wish the URL could include a hash of the content so it could be used for verification for uploading and downloading the files. It could be handy for error checking and security checks.
评论 #8389579 未加载
mivokover 10 years ago
Even shorter&#x2F;easier to remember version of the command (you don&#x27;t have to specify the filename twice if you don&#x27;t want):<p><pre><code> curl -T .&#x2F;filename transfer.sh</code></pre>
abcd_fover 10 years ago
This will be abused for hosting questionable things in no time, if it&#x27;s not already.
评论 #8389175 未加载
评论 #8389602 未加载
qwertaover 10 years ago
Nice, finally hassle free service. No registration, proprietary clients etc...
评论 #8389972 未加载
dainesehover 10 years ago
Hi...I write a wrapper tool, hopeful easy to use, and now just upload &amp; download twice function.<p><a href="https://github.com/daineseh/py-transfer.sh" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;daineseh&#x2F;py-transfer.sh</a><p>ex1: Upload a file to <a href="http://transfer.sh" rel="nofollow">http:&#x2F;&#x2F;transfer.sh</a><p><pre><code> $.&#x2F;pt.py -u &#x2F;home&#x2F;something&#x2F;file1 </code></pre> # and output a link for download:<p><pre><code> https:&#x2F;&#x2F;transfer.sh&#x2F;19Xwp&#x2F;file1 </code></pre> ex2: Upload multiple files to <a href="http://transfer.sh" rel="nofollow">http:&#x2F;&#x2F;transfer.sh</a><p><pre><code> $.&#x2F;pt.py -u &#x2F;home&#x2F;something&#x2F;file1 &#x2F;home&#x2F;something&#x2F;file2 &#x2F;home&#x2F;something&#x2F;file3 </code></pre> # and output some link for downloads:<p><pre><code> https:&#x2F;&#x2F;transfer.sh&#x2F;19Xwp&#x2F;file1 https:&#x2F;&#x2F;transfer.sh&#x2F;19Xwp&#x2F;file2 https:&#x2F;&#x2F;transfer.sh&#x2F;19Xwp&#x2F;file3 </code></pre> ex3: download multiple files from <a href="http://transfer.sh" rel="nofollow">http:&#x2F;&#x2F;transfer.sh</a><p><pre><code> $.&#x2F;pt.py -d https:&#x2F;&#x2F;transfer.sh&#x2F;19Xwp&#x2F;file1 https:&#x2F;&#x2F;transfer.sh&#x2F;1fn4k&#x2F;file2 </code></pre> # Print downloads information:<p><pre><code> Download .&#x2F;file1 done. Download .&#x2F;file2 done. </code></pre> ex4: download multiple files and specify path from <a href="http://transfer.sh" rel="nofollow">http:&#x2F;&#x2F;transfer.sh</a><p><pre><code> $.&#x2F;pt.py -d https:&#x2F;&#x2F;transfer.sh&#x2F;19Xwp&#x2F;file1 https:&#x2F;&#x2F;transfer.sh&#x2F;1fn4k&#x2F;file2 -w &#x2F;home&#x2F;user&#x2F; </code></pre> # Print downloads information:<p><pre><code> Download &#x2F;home&#x2F;user&#x2F;file1 done. Download &#x2F;home&#x2F;user&#x2F;file2 done.</code></pre>
pitover 10 years ago
I didn&#x27;t know about tty2gif (<a href="http://z24.github.io/tty2gif/" rel="nofollow">http:&#x2F;&#x2F;z24.github.io&#x2F;tty2gif&#x2F;</a>) -- that looks pretty cool.
评论 #8393034 未加载
chrisanover 10 years ago
I really like <a href="http://fh.tl/" rel="nofollow">http:&#x2F;&#x2F;fh.tl&#x2F;</a> because you can also easily send shell output<p><pre><code> [&#x2F;] $ ls -la &#x2F; | curl -F &#x27;paste=&lt;-&#x27; http:&#x2F;&#x2F;fh.tl&#x2F; Your paste has been saved! Share this URL: http:&#x2F;&#x2F;fh.tl&#x2F;MO [&#x2F;] $ </code></pre> helpful when trying to debug someone on a remote workers machine
评论 #8387519 未加载
评论 #8387643 未加载
Okke123over 10 years ago
I would love to use this for my own files, without expiration etc. Do you have any plans to open source this?
评论 #8387647 未加载
评论 #8387632 未加载
评论 #8390159 未加载
评论 #8388127 未加载
mmahemoffover 10 years ago
I&#x27;ve been wanting something like this for semi-private image shares as Imgur&#x27;s URLs aren&#x27;t very random; but Transfer has a similar security problem; it looks like the URLs need to be longer as a prerequisite to being un-crawlable. I hope you&#x27;ll consider it.
评论 #8387492 未加载
评论 #8387393 未加载
评论 #8387627 未加载
Paul_Sover 10 years ago
I use woof: <a href="http://www.home.unix-ag.org/simon/woof.html" rel="nofollow">http:&#x2F;&#x2F;www.home.unix-ag.org&#x2F;simon&#x2F;woof.html</a>
scastilloover 10 years ago
at least for common use cases like curl and wget you probably need a wrapper. I mean i love the idea of never leaving my cli, but... as developer and bash user im lazy... so please don&#x27;t make type long curl commands. (Yeah I know I can add some aliases, but a wrapper could be handy). Anyway good job :)
Rudismover 10 years ago
Are there any solutions similar to this and the others mentioned in the discussion that can be self-hosted?
iN7h33nDover 10 years ago
Responsive NavBar button is broken. Also is there any reason to alias a function like in the sample?
Gonzihover 10 years ago
Is there a way to upload image without &quot;attachment&quot; in content disposition header?
评论 #8390761 未加载
calebmover 10 years ago
Thank you for this.