1
0
mirror of https://github.com/dutchcoders/transfer.sh.git synced 2020-11-18 19:53:40 -08:00

small tweaks

This commit is contained in:
Uvis Grinfelds 2014-10-24 16:08:03 +02:00
parent 71b0be37da
commit cb6d37ceb2
5 changed files with 69 additions and 75 deletions

View File

@ -42,7 +42,7 @@
<div id="navigation"> <div id="navigation">
<div class="wrapper"> <div class="wrapper">
<h1>transfer.sh</h1> <h1>transfer.sh</h1>
<ul> <ul class="hidden-xs">
<li><a href="#samples">sample use cases</a> <li><a href="#samples">sample use cases</a>
</li> </li>
<li><a href="#contact">contact us</a> <li><a href="#contact">contact us</a>
@ -54,9 +54,7 @@
<section id="home"> <section id="home">
<div class="wrapper"> <div class="wrapper">
<h2> <h2>
Easy file sharing from the command line Easy file sharing from the command line</h2>
</h2>
<!-- <p class="lead">Share your files using this and drag and rop or click here to upload</p> -->
<div class="row animated fadeInDown"> <div class="row animated fadeInDown">
<div id="from-terminal" class="box col-md-8 col-md-offset-2 col-xs-12"> <div id="from-terminal" class="box col-md-8 col-md-offset-2 col-xs-12">
<div class="terminal-top"> <div class="terminal-top">
@ -71,7 +69,7 @@
<span class="code-title"># Create an alias</span> <span class="code-title"># Create an alias</span>
<br>$ transfer hello.txt <br>$ transfer hello.txt
<br>##################################################### 100.0% https://transfer.sh/eibhM/hello.txt <br>##################################################### 100.0% https://transfer.sh/eibhM/hello.txt
</code>ch </code>
</div> </div>
<div id="web"> <div id="web">
<code> <code>
@ -146,45 +144,36 @@
</h2> </h2>
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<h3>Uploading</h3> <h3>How to upload</h3>
<div id="" class="terminal"> <div class="terminal-top">
</div>
<div class="terminal">
<code> <code>
<span class="code-title"># Upload is easy using cURL</span> <span class="code-title"># Uploading is easy using curl</span>
<br>$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt https://transfer.sh/66nb8/hello.txt <br>$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
<br> <br>
<br> <br>
<span class="code-title"># Download the file</span> <span class="code-title"># Download the file</span>
<br>$ transfer hello.txt <br>$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
<br>#################################################### 100.0% https://transfer.sh/eibhM/hello.txt
<span class="code-title"># Upload multiple files</span>
<br>$ transfer hello.txt
<br>https://transfer.sh/eibhM/hello.txt
<br>
<br>
</code> </code>
</div> </div>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<h3>Create an alias and add to .bashrc</h3> <h3>Create an alias and add it to .bashrc</h3>
<div id="" class="terminal"> <div class="terminal-top">
</div>
<div class="terminal">
<code> <code>
<span class="code-title"># Upload is easy using cURL</span> <span class="code-title"># Add this to .bashrc or it equivalent</span>
<br>$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt https://transfer.sh/66nb8/hello.txt <br>transfer() { # write to output to tmpfile because of progress bar tmpfile=$( mktemp -t transferXXX ) curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; }
<br> <br>
<br> <br>
<span class="code-title"># Download the file</span> <span class="code-title"># Now you can use transfer command</span>
<br>tmpfile = $( mktemp -t transfer ) curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; }
<br>
<span class="code-title"># Now you can just use transfer command</span>
<br>$ transfer hello.txt <br>$ transfer hello.txt
<br>
<br>
</code> </code>
</div> </div>
</div> </div>
</div> </div>
@ -193,42 +182,34 @@
<div class="collapse" id="coll"> <div class="collapse" id="coll">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<h3>Uploading</h3> <h3>Upload multiple files at once</h3>
<div id="" class="terminal"> <div class="terminal-top">
</div>
<div class="terminal">
<code> <code>
<span class="code-title"># Upload is easy using cURL</span> <br>$ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt https://transfer.sh/
<br>$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt https://transfer.sh/66nb8/hello.txt
<br>
<br>
<span class="code-title"># Download the file</span>
<br>$ transfer hello.txt
<br>#################################################### 100.0% https://transfer.sh/eibhM/hello.txt
<span class="code-title"># Upload multiple files</span>
<br>$ transfer hello.txt
<br>https://transfer.sh/eibhM/hello.txt
<br> <br>
<br> <br>
<span class="code-title"># Combining downloads as zip or tar archive</span>
<br>$ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).tar.gz
<br>$ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).zip
</code> </code>
</div> </div>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<h3>Create an alias and add to .bashrc</h3> <h3>Encrypt your files before the transfer</h3>
<div id="" class="terminal"> <div class="terminal-top">
</div>
<div class="terminal">
<code> <code>
<span class="code-title"># Upload is easy using cURL</span> <span class="code-title"># Encrypt files with password using gpk</span>
<br>$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt https://transfer.sh/66nb8/hello.txt <br>$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
<br> <br>
<br> <br>
<span class="code-title"># Download the file</span> <span class="code-title"># Encrypt and upload</span>
<br>tmpfile = $( mktemp -t transfer ) curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; } <br>$ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt
<br>
<span class="code-title"># Now you can just use transfer command</span>
<br>$ transfer hello.txt
<br>
<br>
</code> </code>
</div> </div>
</div> </div>
@ -236,29 +217,31 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<h3>Transfer multiple files</h3> <h3>Scan for malware</h3>
<h4>Upload multiple files at once <div class="terminal-top">
</h4> </div>
<code>$ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt https://transfer.sh/</code> <div class="terminal">
<code>
<h4>Combining downloads as zip or tar archive</h4> <span class="code-title"># Scan for malware or viruses using Clamav</span>
<code>$ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).tar.gz</code> <br>wget http://www.eicar.org/download/eicar.com
<br> <br>curl -X PUT --upload-file ./eicar.com https://transfer.sh/eicar.com/scan
<br>
<code>$ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).zip</code> <span class="code-title"># Upload malware to VirusTotal, get a permalink in return</span>
<br>curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal
<br>
</code>
</div>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<h3>Encrypt your files before the transfer</h3> <h3>Send us your awesome example</h3>
<h4>You can encrypt files using gpg. The following command will encrypt the data before it leaves your server using the password you enter and upload it to transfer.sh.</h4> <div class="terminal-top">
<h4></h4> </div>
<code>$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt</code> <div class="terminal">
<h4>Encrypt and upload</h4> <code>
<code>$ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt</code> </code>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</section> </section>

File diff suppressed because one or more lines are too long

View File

@ -8,6 +8,7 @@
border-radius: 10px; border-radius: 10px;
margin: 3px 15px auto 20px; margin: 3px 15px auto 20px;
} }
} }
blockquote.twitter-tweet { blockquote.twitter-tweet {
@ -21,6 +22,11 @@ blockquote.twitter-tweet {
img { img {
margin: 0 auto; margin: 0 auto;
} }
@media (max-width: @screen-xs) {
.twitter-profile {
display:none!important;
}
}
} }
blockquote.twitter-tweet p { blockquote.twitter-tweet p {

View File

@ -5698,6 +5698,11 @@ blockquote.twitter-tweet {
blockquote.twitter-tweet img { blockquote.twitter-tweet img {
margin: 0 auto; margin: 0 auto;
} }
@media (max-width: 480px) {
blockquote.twitter-tweet .twitter-profile {
display: none!important;
}
}
blockquote.twitter-tweet p { blockquote.twitter-tweet p {
font-size: 17px; font-size: 17px;
font-weight: normal; font-weight: normal;

File diff suppressed because one or more lines are too long