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.
 
 
 
 

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