Skip to content
Browse files

several small improvements

  • Loading branch information...
1 parent bbc5bcc commit bb4c95919f004624bd492a2c9aaccaf31c1d4fb2 @nl5887 nl5887 committed
Showing with 42 additions and 6 deletions.
  1. +3 −0 .bowerrc
  2. +22 −3 README.md
  3. +8 −1 transfersh-server/static/index.html
  4. +1 −1 transfersh-server/static/scripts/main.js
  5. +8 −1 transfersh-web/index.html
View
3 .bowerrc
@@ -0,0 +1,3 @@
+{
+ "directory": "transfersh-web/bower_components"
+}
View
25 README.md
@@ -36,10 +36,29 @@ $ transfer test.txt
## Development
-- grunt serve
-- grunt build
+```
+npm install
+bower install
+
+go get github.com/PuerkitoBio/ghost/handlers
+go get github.com/gorilla/mux
+go get github.com/dutchcoders/go-clamd
+go get github.com/goamz/goamz/s3
+go get github.com/goamz/goamz/aws
+go get github.com/golang/gddo/httputil/header
+go get github.com/kennygrant/sanitize
+
+grunt serve
+grunt build
+
+sh transfer-server/run.sh
+```
+
+## Build
-- sh transfer-server/run.sh
+```
+go build *.go -o transfersh-server
+```
## Contributions
View
9 transfersh-server/static/index.html
@@ -137,7 +137,14 @@
<div class="col-md-6">
<h3>Make an alias</h3>
<h4>Create an alias, and add it to .bashrc for faster use</h4>
- <code>transfer() { curl --upload-file $1 https://transfer.sh/$(basename $1); }<br>
+ <code>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</code>
<h4>Now you can just use <strong>transfer</strong> command</h4>
<code>transfer hello.txt</code>
View
2 transfersh-server/static/scripts/main.js
1 addition, 1 deletion not shown because the diff is too large. Please use a local Git client to view these changes.
View
9 transfersh-web/index.html
@@ -139,7 +139,14 @@
<div class="col-md-6">
<h3>Make an alias</h3>
<h4>Create an alias, and add it to .bashrc for faster use</h4>
- <code>transfer() { curl --upload-file $1 https://transfer.sh/$(basename $1); }<br>
+ <code>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</code>
<h4>Now you can just use <strong>transfer</strong> command</h4>
<code>transfer hello.txt</code>

0 comments on commit bb4c959

Please sign in to comment.
Something went wrong with that request. Please try again.