From 9bc204bec58c8deb607434b54dea900ca70aa531 Mon Sep 17 00:00:00 2001 From: buckket Date: Tue, 17 Feb 2015 23:20:41 +0100 Subject: [PATCH 1/2] Clarified sample use case @ index.html --- transfersh-web/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transfersh-web/index.html b/transfersh-web/index.html index bd28a6c..28bdb71 100644 --- a/transfersh-web/index.html +++ b/transfersh-web/index.html @@ -192,7 +192,7 @@ include "includes/head.html"
$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt

- # Encrypt and upload + # Download and decrypt
$ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt @@ -436,4 +436,4 @@ include "includes/head.html" - \ No newline at end of file + From 8b752b2d735a4a212cf5175d5142f2b8b201307e Mon Sep 17 00:00:00 2001 From: John Ko Date: Tue, 24 Feb 2015 19:46:14 -0500 Subject: [PATCH 2/2] add t and W --- transfersh-server/codec.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/transfersh-server/codec.go b/transfersh-server/codec.go index dfad3f1..4c8d30b 100644 --- a/transfersh-server/codec.go +++ b/transfersh-server/codec.go @@ -1,7 +1,8 @@ /* https://github.com/fs111/kurz.go/blob/master/src/codec.go -Copyright (c) 2011 André Kelpe +Originally written and Copyright (c) 2011 André Kelpe +Modifications Copyright (c) 2015 John Ko Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in @@ -30,7 +31,7 @@ import ( const ( // characters used for short-urls - SYMBOLS = "0123456789abcdefghijklmnopqrsuvwxyzABCDEFGHIJKLMNOPQRSTUVXYZ" + SYMBOLS = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" // someone set us up the bomb !! BASE = int64(len(SYMBOLS))