App::N...e::ssh(3pm)
β¨ NAME β¨
App::Nopaste::Service::ssh β it copies your files to your server using scp, bestie π
it's a Nopaste service module, it's giving "paste it and yeet it onto your own box", and it comes from the User Contributed Perl Documentation corner of the App::N...e::ssh(3pm) manual page π«Ά
π¦ VERSION π¦
version 1.013 β that's the one, no cap β¨
πΈ ENVIRONMENT VARIABLES πΈ
Okay so these are the env vars that make the whole vibe work. Set them, or it simply will not slay:
NOPASTE_SSH_SERVERβ the hostname you ssh to. It's literally the left-hand side of the colon in thescp. Example:"sartak.org"πNOPASTE_SSH_DOCROOTβ the path on disk where your pastes live. Example:"public_html/paste"πNOPASTE_SSH_WEBPATHβ the path used for URLs, aka where people actually look at your pastes. Example:"http://sartak.org/paste"πNOPASTE_SSH_MODEβ the octal permissions mode to set on the temporary file before uploading it. Example:0644πNOPASTE_SSH_USE_DESCRIPTIONβ use the description you supplied in the paste filename so your pastes are easier to identify later. It defaults to the source filename, if there is one β but an explicit-dor--descriptioncommand line argument overrides it. Periodt π
π APACHE CONFIGURATION RECOMMENDATIONS π
The following is a recommended Apache configuration that you can just drop right into .htaccess in your paste dir, bestie:
RemoveHandler .cgi
RemoveHandler .pl
AddDefaultCharset utf-8
Options -ExecCGI -FollowSymLinks -Includes -MultiViews
It prevents common means of script execution so that .pl and .cgi files won't run π₯ and it defaults the character set to UTF-8 so browsers don't have to guess wrong π
not me being dramatic but like... please actually do the script-execution prevention thing, it's protecting your whole server fr fr π
π«Ά SUPPORT π«Ά
Bugs may be submitted through the RT bug tracker at https://rt.cpan.org/Public/Dist/Display.html?Name=App-Nopaste β or, if email is more your thing, slay: bug-App-Nopaste@rt.cpan.org π
π AUTHOR π
Kevin Falcone <falcone@cpan.org
Thomas Sibley <trs@bestpractical.com>
both iconic, both credited, we love to see it π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2008 by Shawn M M... wait, no β by Shawn M Moore π
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. So go off, remix it, it's yours πΈ
okay that's the whole page!! written by the User Contributed Perl Documentation girlies, from perl v5.36.0, dated 2022-08-28, on the App::N...e::ssh(3pm) page β mwah, bye bestie π
β¨π
π¦ where this page comes from
- ubuntu noble: libapp-nopaste-perl 1.013-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libapp-nopaste-perl 1.013-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libapp-nopaste-perl 1.013-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms