diff --git a/README b/README index 5ab632d..39885e3 100644 --- a/README +++ b/README @@ -20,6 +20,9 @@ Paste from STDIN: ~$ echo "hi" | 6p +Paste from here document: + ~$ cat << EOF | 6p + The oneliner for in your .bash_profile: 6p() { curl -s -F "content=<${1--}" -F ttl=604800 -w "%{redirect_url}\n" -o diff --git a/server-conf/README.md b/server-conf/README.md index d4da6ea..c05b3ab 100644 --- a/server-conf/README.md +++ b/server-conf/README.md @@ -2,9 +2,7 @@ LIGHTTPD INSTALL - Configure your Lighttpd web server with PHP FastCGI and OpenSSL support - 6paster requires HTTPS to work. -- Add the server configuration example that you find at 'lighttpd/lighttpd-conf.txt' to your Lighttpd configuration file. - -- Copy the 'lighttpd/index.php' to the 'webroot/' directory of your 6paster installation. +- Add the server configuration example that you find at 'server-conf/lighttpd-conf.txt' to your Lighttpd configuration file. - Reload the Lighttpd process. @@ -12,9 +10,7 @@ NGINX INSTALL - Configure your NGINX web server with PHP FastCGI and OpenSSL support - 6paster requires HTTPS to work. -- Add the server configuration example that you find at 'nginx/nginx-conf.txt' to your NGINX configuration file. - -- Copy the 'webroot/index.php' to the 'webroot/' directory of your 6paster installation. +- Add the server configuration example that you find at 'server-conf/nginx-conf.txt' to your NGINX configuration file. - Reload the NGINX process. diff --git a/tpl/form.php b/tpl/form.php index 6644ec2..4d93514 100644 --- a/tpl/form.php +++ b/tpl/form.php @@ -17,7 +17,7 @@
- Hint: put the following oneliner in your .bashrc to use "6p <file>" or "echo hi | 6p" (thanks, Habbie and Reinhart):

+ Hint: put the following oneliner in your .bashrc to use "6p <file>" or "echo hi | 6p" or "cat << EOF | 6p" (thanks, Habbie and Reinhart):

6p() { curl -s -F "content=<${1--}" -F ttl=604800 -w "%{redirect_url}\n" -o /dev/null }