diff --git a/.gitignore b/.gitignore
index 15ce9b5..96cc0e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,4 @@ bower_components/
node_modules/
transfersh-server/run.sh
+transfersh-server/static
\ No newline at end of file
diff --git a/Gruntfile.js b/Gruntfile.js
index 238e92e..944237e 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -129,7 +129,7 @@ module.exports = function (grunt) {
src: [
'<%= yeoman.dist %>/scripts/{,*/}*.js',
'<%= yeoman.dist %>/styles/{,*/}*.css',
- '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp}',
+ '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
'<%= yeoman.dist %>/fonts/{,*/}*.*'
]
}
@@ -158,16 +158,7 @@ module.exports = function (grunt) {
}]
}
},
- svgmin: {
- dist: {
- files: [{
- expand: true,
- cwd: '<%= yeoman.app %>/images',
- src: '{,*/}*.svg',
- dest: '<%= yeoman.dist %>/images'
- }]
- }
- },
+
cssmin: {
dist: {
files: {
@@ -212,7 +203,7 @@ module.exports = function (grunt) {
'.htaccess',
'index.txt',
'404.txt',
- 'images/{,*/}*.{webp,gif}'
+ 'images/{,*/}*.{webp,gif,svg}'
]
}]
},
@@ -236,7 +227,6 @@ module.exports = function (grunt) {
dist: [
'less',
'imagemin',
- 'svgmin',
'htmlmin'
]
}
diff --git a/package.json b/package.json
index 435d4d3..ea7bf74 100644
--- a/package.json
+++ b/package.json
@@ -6,25 +6,25 @@
},
"devDependencies": {
"grunt": "~0.4.5",
- "grunt-contrib-copy": "~0.6.0",
- "grunt-contrib-concat": "~0.5.0",
- "grunt-contrib-uglify": "~0.6.0",
- "grunt-contrib-jshint": "~0.10.0",
- "grunt-contrib-cssmin": "~0.10.0",
- "grunt-contrib-connect": "~0.8.0",
+ "grunt-concurrent": "~1.0.0",
"grunt-contrib-clean": "~0.6.0",
+ "grunt-contrib-concat": "~0.5.0",
+ "grunt-contrib-connect": "~0.8.0",
+ "grunt-contrib-copy": "~0.6.0",
+ "grunt-contrib-cssmin": "~0.10.0",
"grunt-contrib-htmlmin": "~0.3.0",
- "grunt-contrib-less": "~0.11.4",
"grunt-contrib-imagemin": "0.8.1",
+ "grunt-contrib-jshint": "~0.10.0",
+ "grunt-contrib-less": "~0.11.4",
+ "grunt-contrib-uglify": "~0.6.0",
"grunt-contrib-watch": "~0.6.1",
"grunt-rev": "~0.1.0",
- "grunt-usemin": "~2.4.0",
"grunt-svgmin": "1.0.0",
- "grunt-concurrent": "~1.0.0",
+ "grunt-usemin": "~2.4.0",
+ "jshint-stylish": "~1.0.0",
"load-grunt-tasks": "~0.6.0",
"matchdep": "~0.3.0",
- "time-grunt": "~1.0.0",
- "jshint-stylish": "~1.0.0"
+ "time-grunt": "~1.0.0"
},
"engines": {
"node": ">=0.8.0"
diff --git a/transfersh-server/static/images/terminal.svg b/transfersh-server/static/images/terminal.svg
index b52f413..9d3cf8f 100644
--- a/transfersh-server/static/images/terminal.svg
+++ b/transfersh-server/static/images/terminal.svg
@@ -1 +1,189 @@
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ image/svg+xml
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/transfersh-server/static/index.html b/transfersh-server/static/index.html
index daf66f9..07a6800 100644
--- a/transfersh-server/static/index.html
+++ b/transfersh-server/static/index.html
@@ -16,8 +16,8 @@
-
-
+
+
@@ -42,8 +42,8 @@
transfer.sh
-
- Sample use cases
+
+ sample use cases
contact us
@@ -54,52 +54,57 @@
- Easy file sharing from the command line
-
-
+ Easy file sharing from the command line
-
-
Share from terminal
-
-
-
-
Share from web
+
+
+
+
+
+ # Upload using cURL
+ $ curl --upload-file ./hello.txt https://transfer.sh/hello.txt https://transfer.sh/66nb8/hello.txt
+
+
+ # Create an alias
+ $ transfer hello.txt
+ ##################################################### 100.0% https://transfer.sh/eibhM/hello.txt
+
+
-
-
-
+
+
-
+
Made for use with shell
@@ -117,7 +122,7 @@
Files stored for 14 days
-
+
For free
@@ -139,21 +144,35 @@
-
Uploading
-
Uploading is easy using curl.
-
$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
-
Download the file.
-
$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
+
How to upload
+
+
+
+
+
+ # Uploading is easy using curl
+ $ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
+
+
+ # Download the file
+ $ curl --upload-file ./hello.txt https://transfer.sh/hello.txt
+
+
-
Make an alias
-
-
Create an alias, and add it to .bashrc for faster use
-
$ transfer() { # write to output to tmpfile because of progress bar tmpfile=$( mktemp -t transfer ) curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; }
- $ alias transfer=transfer
-
Now you can just use
- transfer command
-
$ transfer hello.txt
+
Create an alias and add it to .bashrc
+
+
+
+
+ # Add this to .bashrc or it equivalent
+ 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; }
+
+
+ # Now you can use transfer command
+ $ transfer hello.txt
+
+
@@ -163,29 +182,66 @@
-
Transfer multiple files
-
Upload multiple files at once
-
-
$ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt https://transfer.sh/
-
-
Combining downloads as zip or tar archive
-
$ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).tar.gz
-
-
-
$ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).zip
+
Upload multiple files at once
+
+
+
+
+ $ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt https://transfer.sh/
+
+
+ # Combining downloads as zip or tar archive
+ $ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).tar.gz
+ $ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).zip
+
+
Encrypt your files before the transfer
-
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.
-
-
$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
-
Encrypt and upload
-
$ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt
+
+
+
+
+ # Encrypt files with password using gpk
+ $ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt
+
+
+ # Encrypt and upload
+ $ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt
+
+
+
+
+
+
+
+
Scan for malware
+
+
+
+
+ # Scan for malware or viruses using Clamav
+ wget http://www.eicar.org/download/eicar.com
+ curl -X PUT --upload-file ./eicar.com https://transfer.sh/eicar.com/scan
+
+ # Upload malware to VirusTotal, get a permalink in return
+ curl -X PUT --upload-file nhgbhhj https://transfer.sh/test.txt/virustotal
+
+
+
+
+
+
Send us your awesome example
+
+
+
+
+
+
-
@@ -193,7 +249,6 @@