<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tyk.wiki/index.php?action=history&amp;feed=atom&amp;title=Yanopaste</id>
	<title>Yanopaste - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tyk.wiki/index.php?action=history&amp;feed=atom&amp;title=Yanopaste"/>
	<link rel="alternate" type="text/html" href="https://tyk.wiki/index.php?title=Yanopaste&amp;action=history"/>
	<updated>2026-05-10T14:20:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://tyk.wiki/index.php?title=Yanopaste&amp;diff=328&amp;oldid=prev</id>
		<title>Tykling: Created page with &#039;Yanopaste is a pastebin (not unlike many others). The following is a Perl script that can paste from stdin to a Yanopaste pastebin.  &lt;pre&gt; #!/usr/local/bin/perl use strict; #####…&#039;</title>
		<link rel="alternate" type="text/html" href="https://tyk.wiki/index.php?title=Yanopaste&amp;diff=328&amp;oldid=prev"/>
		<updated>2010-10-10T22:57:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;Yanopaste is a pastebin (not unlike many others). The following is a Perl script that can paste from stdin to a Yanopaste pastebin.  &amp;lt;pre&amp;gt; #!/usr/local/bin/perl use strict; #####…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Yanopaste is a pastebin (not unlike many others). The following is a Perl script that can paste from stdin to a Yanopaste pastebin.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/usr/local/bin/perl&lt;br /&gt;
use strict;&lt;br /&gt;
##############################&lt;br /&gt;
# pastebin script for yanopaste&lt;br /&gt;
# set the yanopaste url below&lt;br /&gt;
#&lt;br /&gt;
#  /Tykling, october 2010&lt;br /&gt;
##############################&lt;br /&gt;
&lt;br /&gt;
#configuration&lt;br /&gt;
my $pasteurl=&amp;quot;http://p.tyk.nu&amp;quot;;&lt;br /&gt;
my $name=&amp;quot;tykling&amp;quot;;&lt;br /&gt;
my $language=&amp;quot;text&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
#declare variables&lt;br /&gt;
my $htmloutput=&amp;quot;&amp;quot;;&lt;br /&gt;
my $href=&amp;quot;&amp;quot;;&lt;br /&gt;
my @hrefs;&lt;br /&gt;
&lt;br /&gt;
#get input from stdin and write it to temp file&lt;br /&gt;
my @inputlines=(&amp;lt;&amp;gt;) ;&lt;br /&gt;
open (MYFILE, &amp;#039;&amp;gt;/tmp/tykpaste&amp;#039;);&lt;br /&gt;
print MYFILE @inputlines;&lt;br /&gt;
close (MYFILE); &lt;br /&gt;
&lt;br /&gt;
#run curl to make the paste&lt;br /&gt;
my $htmloutput=`curl -s --url $pasteurl --data-urlencode name=$name --data-urlencode language=$language --data-urlencode content\@/tmp/tykpaste`;&lt;br /&gt;
&lt;br /&gt;
#delete temp file&lt;br /&gt;
unlink &amp;quot;/tmp/tykpaste&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
#parse html output, find all HREF links&lt;br /&gt;
@hrefs=($htmloutput =~ m|href\s*=\s*\&amp;quot;([^\&amp;quot;]+)\&amp;quot;|ig);&lt;br /&gt;
foreach $href (@hrefs) {&lt;br /&gt;
	#find the link to the new paste (contains the id= parameter)&lt;br /&gt;
	if ($href =~ m/id=/) {&lt;br /&gt;
		#link found, output to user&lt;br /&gt;
		print &amp;quot;Pasted to url: $href\n&amp;quot;;&lt;br /&gt;
		exit 0;&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
print &amp;quot;Error, paste unsuccessful. cURL output below:\n&amp;quot;;&lt;br /&gt;
print $htmloutput;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tykling</name></author>
	</entry>
</feed>