TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Command-line file sharing

226 点作者 masolino超过 10 年前

21 条评论

andy_ppp超过 10 年前
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_Cmpwn超过 10 年前
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 未加载
snorrah超过 10 年前
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 未加载
joelthelion超过 10 年前
How do you intend to make money?
评论 #8388392 未加载
评论 #8389719 未加载
ankushio超过 10 年前
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 未加载
mati超过 10 年前
<a href="http://curl.io/" rel="nofollow">http:&#x2F;&#x2F;curl.io&#x2F;</a>
评论 #8387657 未加载
评论 #8387498 未加载
antimora超过 10 年前
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 未加载
mivok超过 10 年前
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_f超过 10 年前
This will be abused for hosting questionable things in no time, if it&#x27;s not already.
评论 #8389175 未加载
评论 #8389602 未加载
qwerta超过 10 年前
Nice, finally hassle free service. No registration, proprietary clients etc...
评论 #8389972 未加载
daineseh超过 10 年前
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>
pit超过 10 年前
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 未加载
chrisan超过 10 年前
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 未加载
Okke123超过 10 年前
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 未加载
mmahemoff超过 10 年前
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_S超过 10 年前
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>
scastillo超过 10 年前
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 :)
Rudism超过 10 年前
Are there any solutions similar to this and the others mentioned in the discussion that can be self-hosted?
iN7h33nD超过 10 年前
Responsive NavBar button is broken. Also is there any reason to alias a function like in the sample?
Gonzih超过 10 年前
Is there a way to upload image without &quot;attachment&quot; in content disposition header?
评论 #8390761 未加载
calebm超过 10 年前
Thank you for this.