You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

450 lines
22 KiB

  1. <!doctype html>
  2. <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
  3. <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
  4. <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
  5. <!--[if gt IE 8]><!-->
  6. <html class="no-js">
  7. <!--<![endif]-->
  8. include "includes/head.html"
  9. <body>
  10. <script>
  11. (function (i, s, o, g, r, a, m) {
  12. i['GoogleAnalyticsObject'] = r;
  13. i[r] = i[r] || function () {
  14. (i[r].q = i[r].q || []).push(arguments)
  15. }, i[r].l = 1 * new Date();
  16. a = s.createElement(o),
  17. m = s.getElementsByTagName(o)[0];
  18. a.async = 1;
  19. a.src = g;
  20. m.parentNode.insertBefore(a, m)
  21. })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
  22. ga('create', 'UA-40833733-1', 'transfer.sh');
  23. ga('send', 'pageview');
  24. </script>
  25. include "includes/navigation.html"
  26. <section id="home">
  27. <div class="wrapper">
  28. <h2 class="page-title">
  29. Easy file sharing from the command line</h2>
  30. <div class="row animated fadeInDown">
  31. <div id="from-terminal" class="box col-md-8 col-md-offset-2 col-xs-12">
  32. <div class="terminal-top">
  33. </div>
  34. <div id="terminal" class="terminal">
  35. <code>
  36. <span class="code-title"># Upload using cURL</span>
  37. <br>$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt https://transfer.sh/66nb8/hello.txt
  38. <br>
  39. <br>
  40. <span class="code-title"># Using the shell function</span>
  41. <br>$ transfer hello.txt
  42. <br>##################################################### 100.0% https://transfer.sh/eibhM/hello.txt
  43. </code>
  44. </div>
  45. <div id="web">
  46. <code>
  47. <br>
  48. <span class="code-title"># Upload from web</span>
  49. <br>Drag your files here, or <a class="browse" href="#"> click to browse. <br/></a>
  50. </code>
  51. <input type="file" multiple="multiple" style='display: none;' />
  52. <ul class='queue'>
  53. <li>
  54. </li>
  55. </ul>
  56. <div class='all-files'>
  57. <br>
  58. <div>
  59. <span class="code-title"># Download all your files</span>
  60. <br/>
  61. <br/>
  62. <a class="download-zip btn-cta" href="#">zip</a> <a class="download-tar btn-cta" href="#">tar.gz</a>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. <div>
  68. <a href="#features" class="btn-cta btn-home">learn more</i> </a>
  69. </div>
  70. </div>
  71. </section>
  72. <section id="features">
  73. <div class="wrapper container">
  74. <div class="row animated fadeInDown ">
  75. <div class="col-md-3 col-xs-6">
  76. <i class="icon-terminal"></i>
  77. <h3>Made for use with shell</h3>
  78. </div>
  79. <div class="col-md-3 col-xs-6">
  80. <i class="icon-link"></i>
  81. <h3>Share files with a URL</h3>
  82. </div>
  83. <div class="col-md-3 col-xs-6">
  84. <i class="icon-database"></i>
  85. <h3>Upload up to 10 GB</h3>
  86. </div>
  87. <div class="col-md-3 col-xs-6">
  88. <i class="icon-clock"></i>
  89. <h3>Files stored for 14 days</h3>
  90. </div>
  91. </div>
  92. <div class="row animated fadeInDown">
  93. <div class="col-md-offset-3 col-md-3 col-xs-6">
  94. <i class="icon-tag"></i>
  95. <h3>For free</h3>
  96. </div>
  97. <div class="col-md-3 col-xs-6">
  98. <i class="icon-lock"></i>
  99. <h3>Encrypt your files</h3>
  100. </div>
  101. <div class="col-md-3 col-xs-6">
  102. <i class="icon-lock"></i>
  103. <h3>Maximize amount of downloads</h3>
  104. </div>
  105. </div>
  106. </div>
  107. </section>
  108. <section id="share">
  109. <div class="wrapper">
  110. <h2 class="page-title">Preview your files in the browser!</h2>
  111. </div>
  112. </section>
  113. <section id="samples">
  114. <div class="wrapper">
  115. <h2 class="page-title">
  116. Sample use cases
  117. </h2>
  118. <div class="row">
  119. <div class="col-md-6 ">
  120. <h3>How to upload</h3>
  121. <div class="terminal-top">
  122. </div>
  123. <div class="terminal">
  124. <code>
  125. <span class="code-title"># Uploading is easy using curl</span>
  126. <br>$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
  127. <br>https://transfer.sh/66nb8/hello.txt
  128. <br/>
  129. <br>$ curl -H "Max-Downloads: 1" -H "Max-Days: 5" --upload-file ./hello.txt https://transfer.sh/hello.txt
  130. <br>https://transfer.sh/66nb8/hello.txt
  131. <br>
  132. <span class="code-title"># Download the file</span>
  133. <br>$ curl https://transfer.sh/66nb8/hello.txt -o hello.txt
  134. </code>
  135. </div>
  136. </div>
  137. <div class="col-md-6 ">
  138. <h3>Add shell function to .bashrc or .zshrc</a></h3>
  139. <div class="terminal-top">
  140. </div>
  141. <div class="terminal">
  142. <code>
  143. <span class="code-title"># Add this to .bashrc or .zshrc or its equivalent</span>
  144. <br/>
  145. transfer(){ if [ $# -eq 0 ];then echo &quot;No arguments specified.\nUsage:\n transfer &lt;file|directory&gt;\n ... | transfer &lt;file_name&gt;&quot;&gt;&amp;2;return 1;fi;if tty -s;then file=&quot;$1&quot;;file_name=$(basename &quot;$file&quot;);if [ ! -e &quot;$file&quot; ];then echo &quot;$file: No such file or directory&quot;&gt;&amp;2;return 1;fi;if [ -d &quot;$file&quot; ];then file_name=&quot;$file_name.zip&quot; ,;(cd &quot;$file&quot;&amp;&amp;zip -r -q - .)|curl --progress-bar --upload-file &quot;-&quot; &quot;https://transfer.sh/$file_name&quot;|tee /dev/null,;;else cat &quot;$file&quot;|curl --progress-bar --upload-file &quot;-&quot; &quot;https://transfer.sh/$file_name&quot;|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file &quot;-&quot; &quot;https://transfer.sh/$file_name&quot;|tee /dev/null;fi;}
  146. <br/>
  147. <br/>
  148. <span class="code-title"># Now you can use transfer function</span>
  149. <br>$ transfer hello.txt
  150. </code>
  151. </div>
  152. </div>
  153. </div>
  154. <a class="btn-cta" data-target="#coll" data-toggle="collapse">More examples</a>
  155. <div class="collapse " id="coll">
  156. <div class="row">
  157. <div class="col-md-6 ">
  158. <h3>Upload multiple files at once</h3>
  159. <div class="terminal-top">
  160. </div>
  161. <div class="terminal">
  162. <code>
  163. <br>$ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt https://transfer.sh/
  164. <br>
  165. <br>
  166. <span class="code-title"># Combining downloads as zip or tar archive</span>
  167. <br>$ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).tar.gz
  168. <br/>$ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).zip
  169. </code>
  170. </div>
  171. </div>
  172. <div class="col-md-6 ">
  173. <h3>Encrypt your files before the transfer</h3>
  174. <div class="terminal-top">
  175. </div>
  176. <div class="terminal">
  177. <code>
  178. <span class="code-title"># Encrypt files with password using gpg</span>
  179. <br>$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
  180. <br>
  181. <br>
  182. <span class="code-title"># Download and decrypt</span>
  183. <br>$ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt
  184. </code>
  185. </div>
  186. </div>
  187. </div>
  188. <div class="row">
  189. <div class="col-md-6">
  190. <h3>Scan for malware</h3>
  191. <div class="terminal-top">
  192. </div>
  193. <div class="terminal">
  194. <code>
  195. <span class="code-title"># Scan for malware or viruses using Clamav</span>
  196. <br>$ wget http://www.eicar.org/download/eicar.com
  197. <br>$ curl -X PUT --upload-file ./eicar.com https://transfer.sh/eicar.com/scan
  198. <br>
  199. <br>
  200. <span class="code-title"># Upload malware to VirusTotal, get a permalink in return</span>
  201. <br>$ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal
  202. <br>
  203. </code>
  204. </div>
  205. </div>
  206. <div class="col-md-6">
  207. <h3>Backup mysql database, encrypt and transfer</h3>
  208. <div class="terminal-top">
  209. </div>
  210. <div class="terminal">
  211. <code>
  212. <span class="code-title"># Backup, encrypt and transfer</span>
  213. <br/>$ mysqldump --all-databases|gzip|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt</code>
  214. </div>
  215. </div>
  216. </div>
  217. <div class="row">
  218. <div class="col-md-6">
  219. <h3>Send email with transfer link (uses shell function)</h3>
  220. <div class="terminal-top">
  221. </div>
  222. <div class="terminal">
  223. <code>
  224. <span class="code-title"># Transfer and send email with link (uses shell function)</span>
  225. <br/>$ transfer /tmp/hello.txt | mail -s "Hello World" user@yourmaildomain.com
  226. </code>
  227. </div>
  228. </div>
  229. <div class="col-md-6">
  230. <h3>Using <a href="https://keybase.io/">Keybase.io</a></h3>
  231. <div class="terminal-top">
  232. </div>
  233. <div class="terminal">
  234. <code>
  235. <span class="code-title"># Import keys from keybase</span>
  236. <br/>$ keybase track [them]
  237. <span class="code-title"># Encrypt for recipient(s)</span>
  238. <br/>$ cat somebackupfile.tar.gz | keybase encrypt [them] | curl --upload-file '-' https://transfer.sh/test.txt
  239. <span class="code-title"># Decrypt</span>
  240. <br/>$ curl https://transfer.sh/sqUFi/test.md |keybase decrypt
  241. </code>
  242. </div>
  243. </div>
  244. </div>
  245. <div class="row">
  246. <div class="col-md-6">
  247. <h3>wget uploads also supported</h3>
  248. <div class="terminal-top">
  249. </div>
  250. <div class="terminal">
  251. <code>
  252. <span class="code-title"># wget</span>
  253. <br/>$ wget --method PUT --body-file=/tmp/file.tar https://transfer.sh/file.tar -O - -nv
  254. </code>
  255. </div>
  256. </div>
  257. <div class="col-md-6">
  258. <h3>Transfer pound logs</h3>
  259. <div class="terminal-top">
  260. </div>
  261. <div class="terminal">
  262. <code>
  263. <span class="code-title"># grep syslog for pound and transfer</span>
  264. <br/>$ cat /var/log/syslog|grep pound|curl --upload-file - https://transfer.sh/pound.log
  265. </code>
  266. </div>
  267. </div>
  268. </div>
  269. <div class="row">
  270. <div class="col-md-6">
  271. <h3>Upload a file using Powershell</h3>
  272. <div class="terminal-top">
  273. </div>
  274. <div class="terminal">
  275. <code>
  276. <span class="code-title"># Upload using Powershell
  277. <br/>
  278. PS H:\&gt; invoke-webrequest -method put -infile .\file.txt https://transfer.sh/file.txt
  279. </code>
  280. </div>
  281. </div>
  282. <div class="col-md-6">
  283. <h3>Upload a file using HTTPie</h3>
  284. <div class="terminal-top">
  285. </div>
  286. <div class="terminal">
  287. <code>
  288. <span class="code-title"># HTTPie
  289. <br/>
  290. $ http https://transfer.sh/ -vv &lt; /tmp/test.log
  291. </code>
  292. </div>
  293. </div>
  294. </div>
  295. <div class="row">
  296. <div class="col-md-6">
  297. <h3>Send us your awesome example</h3>
  298. <div class="terminal-top">
  299. </div>
  300. <div class="terminal">
  301. <code>
  302. <span class="code-title"># Your awesome sample will be put here</span>
  303. </code>
  304. </div>
  305. </div>
  306. </div>
  307. </div>
  308. </div>
  309. </section>
  310. <section id="share">
  311. <div class="wrapper">
  312. <h2 class="page-title">Follow on GitHub</h2>
  313. <br>
  314. <br>
  315. <iframe src="https://ghbtns.com/github-btn.html?user=dutchcoders&repo=transfer.sh&type=follow&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="250" height="50"></iframe>
  316. <iframe src="https://ghbtns.com/github-btn.html?user=dutchcoders&repo=transfer.sh&type=watch&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="200" height="50"></iframe>
  317. </div>
  318. </section>
  319. <section id="reviews">
  320. <div class="wrapper">
  321. <div class="row">
  322. <div class="col-md-8 col-md-offset-2 col-xs-12">
  323. <blockquote class="twitter-tweet tweet-xl" lang="en">
  324. <a href="https://twitter.com/FloifyDave/status/517383101425516544">
  325. <img class="twitter-profile" src="images/reviews/dave.jpg" alt="">
  326. </a>
  327. <p><a href="https://twitter.com/dutchcoders">@dutchcoders</a> Thanks for transfer.sh. Just used it for a production purpose for a customer. So great, so easy, so https. :)</p>
  328. <a href="https://twitter.com/FloifyDave/status/517383101425516544">
  329. &mdash; Dave Sims (@FloifyDave)</a>
  330. </blockquote>
  331. </div>
  332. </div>
  333. <div class="row">
  334. <div class="col-md-6 col-xs-12">
  335. <blockquote class="twitter-tweet" lang="en">
  336. <a href="https://twitter.com/kareemk/status/517029789191118849">
  337. <img class="twitter-profile" src="images/reviews/kareem.jpg" alt="">
  338. </a>
  339. <p><a href="https://twitter.com/dutchcoders">@dutchcoders</a> love transfer.sh! any change we can *pay* for a self-hosted version?</p><a href="https://twitter.com/kareemk/status/517029789191118849">&mdash; Kareem Kouddous (@kareemk) </a>
  340. </blockquote>
  341. </div>
  342. <div class="col-md-6 col-xs-12">
  343. <blockquote class="twitter-tweet" lang="en">
  344. <a href="https://twitter.com/drakpz/status/517008058841829376">
  345. <img class="twitter-profile" src="images/reviews/pg.jpeg" alt="">
  346. </a>
  347. <p><a href="http://t.co/JomAmqWYEB">http://t.co/JomAmqWYEB</a> by <a href="https://twitter.com/dutchcoders">@dutchcoders</a> is pure awesomeness! any chance of source on github? :-)</p><a href="https://twitter.com/drakpz/status/517008058841829376">&mdash; PJ Spagnolatti (@drakpz)</a>
  348. </blockquote>
  349. </div>
  350. </div>
  351. <div class="row">
  352. <div class="col-md-6 col-xs-12">
  353. <blockquote class="twitter-tweet" lang="en">
  354. <a href="https://twitter.com/jacoblindgren11/status/516975006501203968">
  355. <img class="twitter-profile" src="images/reviews/jacob.jpg" alt="">
  356. </a>
  357. <p>Love transfer.sh! Will be using it from now on! Thanks for the amazing service we can use from the CLI <a href="https://twitter.com/dutchcoders">@dutchcoders</a>
  358. </p><a href="https://twitter.com/jacoblindgren11/status/516975006501203968">&mdash; Jacob Lindgren (@jacoblindgren11) </a>
  359. </blockquote>
  360. </div>
  361. <div class="col-md-6 col-xs-12">
  362. <blockquote class="twitter-tweet" lang="en">
  363. <a href="https://twitter.com/arvestad/status/519507976491499521">
  364. <img class="twitter-profile" src="images/reviews/lars.jpg" alt="">
  365. </a>
  366. <p>transfer.sh is my latest fav service! Try simple command-line and web file sharing! <a href="https://t.co/FSrsb1JKJd">https://t.co/FSrsb1JKJd</a>&#10;Thanks <a href="https://twitter.com/dutchcoders">@dutchcoders</a> !</p> <a href="https://twitter.com/arvestad/status/519507976491499521">&mdash; Lars Arvestad (@arvestad)</a>
  367. </blockquote>
  368. </div>
  369. </div>
  370. </div>
  371. </section>
  372. <section id="share">
  373. <div class="wrapper">
  374. <h2 class="page-title">Share the love</h2>
  375. <ul class="share-buttons">
  376. <li>
  377. <a href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Ftransfer.sh&t=" target="_blank" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(document.URL) + '&t=' + encodeURIComponent(document.URL)); return false;"> <i class="icon-facebook"></i>
  378. </a>
  379. </li>
  380. <li>
  381. <a href="https://twitter.com/intent/tweet?source=http%3A%2F%2Ftransfer.sh&text=:%20http%3A%2F%2Ftransfer.sh" target="_blank" title="Tweet" onclick="window.open('https://twitter.com/intent/tweet?text=' + encodeURIComponent(document.title) + ':%20' + encodeURIComponent(document.URL)); return false;"> <i class="icon-twitter"></i>
  382. </li>
  383. <li>
  384. <a href="https://plus.google.com/share?url=http%3A%2F%2Ftransfer.sh" target="_blank" title="Share on Google+" onclick="window.open('https://plus.google.com/share?url=' + encodeURIComponent(document.URL)); return false;"> <i class="icon-gplus"></i>
  385. </a>
  386. </li>
  387. <li>
  388. <a href="http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Ftransfer.sh&title=&summary=&source=http%3A%2F%2Ftransfer.sh" target="_blank" title="Share on LinkedIn" onclick="window.open('http://www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(document.URL) + '&title=' + encodeURIComponent(document.title)); return false;"> <i class="icon-linkedin"></i>
  389. </a>
  390. </li>
  391. </ul>
  392. </div>
  393. </section>
  394. <section id="contact">
  395. <div class="wrapper">
  396. <i class="icon-mail"></i>
  397. <h2 class="page-title">
  398. Any questions?
  399. </h2>
  400. <a href="#" data-uv-trigger class="btn-cta">contact us</a>
  401. </div>
  402. </section>
  403. <section id="tor">
  404. <div class="wrapper">
  405. <a href="https://www.torproject.org"><img src="images/tor.svg" alt="">
  406. </a>
  407. <br/>
  408. <a href="http://jxm5d6emw5rknovg.onion/">http://jxm5d6emw5rknovg.onion/</a>
  409. </div>
  410. </section>
  411. include "includes/footer.html"
  412. include "includes/js.html"
  413. </body>
  414. </html>