commit a66a2ea64de28308e2e269fb562baaf56c01f782 parent d7ae1b5ae3ce2daa134a68f56729290989e2cfe2 Author: sin <sin@2f30.org> Date: Wed, 20 Jun 2018 19:49:05 +0100 add paste script Diffstat:
A | p | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/p b/p @@ -0,0 +1,10 @@ +#!/bin/sh -e + +host=u.2f30.org +user=${USER:-$LOGNAME} +base=/home/$user/www +path=p +file=`openssl rand -hex 8` + +ssh $user@$host "cd $base/$path && cat > $file" +echo https://$host/$user/$path/$file