🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #239652

quickly hacked script for displaying faces

#239652
From: Florian Rehnisch
Date: Sat, 30 Jan 2010 19:27
39 lines
2031 bytes
#!/usr/bin/perl -w

exit unless $ENV{DISPLAY};

$outfile="/tmp/showface$ENV{USER}$$";
open OUT,'>',$outfile or exit;

print OUT "Content-Transfer-Encoding: Base64\n\n";
$face=0;

while (<>) {
	if ($face) {
		/(.)(.*)/;
		if ($1 eq ' ') {
			print OUT $2;
		} else {
			$face=0;
			last;
		}
	} else {
		/([^:]*): (.*)/;
		if ($1 eq 'Face') {
			print OUT $2;
			$face=1;
		}
	}
}

close OUT;

system "xli $outfile.png"
	unless (system "mimedecode <$outfile|sed '1,4d' >$outfile.png");

Enjoy!
-- 
 flori
Vim-Hilfe auf Deutsch         http://www.florianrehnisch.de/vimhelp/
WARNING: PRGRAMMING BUG IN E2FSCK!
        OR SOME BONEHEAD (YOU) IS CHECKING A MOUNTED (LIVE) FILESYSTEM.
Technical Details
Message-ID: <2010-01-30$17.28.49@x.vimhelp.de.vu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <2010-01-30$17.28.49@x.vimhelp.de.vu>
Subject: quickly hacked script for displaying faces
Date: Sat, 30 Jan 2010 19:27:26 +0000
From: eixman@gmx.de (Florian Rehnisch)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!not-for-mail
Newsgroups: news.software.readers
Organization: albasani.net
Lines: 39
X-Trace: news.albasani.net
 u2BBzwwYse3w4Lql076iecE8+UPv/5DlR/uSGrFuyBu/R6CJWBAY/W2nNgAV+BO4RUH5VcRX39NvNsHa1DTk+PzAQTGk9xl7a2jf3TyRxLt0kjGiFeV7jcZZmCYz9q6a
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Sat, 30 Jan 2010 19:27:26 +0000 (UTC)
X-User-ID: lPfkK9r+0iAI3+dsuxVu+FwAgKbsTCYuRJyjOlxXcHU=
X-Debian: 5.0.3
X-Face: #=0D6>,S]I3Gx`2mT34QDf]m,X.DVA_|,1de'B!<KBvK:G^(`O)Zh2wJto=M3]`}wYj
 2e|]sI!+=#L#n9@:x*](YSEe)94Wr0Re2O0"kEY8b_"53P=wI3stMOBT$E#3nRuGAilWP_Y!Lx
 z?beBY!(K\oZ!74q8v|2lt7fm"n0B.#E5N"T"n];jutK;F"./a!0T(v3>@!=7O%/^?)(00JV8h
 \n~kqPp-
Cancel-Lock: sha1:5PplLOLc9CFIPqyKQCB0mI6uqHo=
User-Agent: tin
X-NNTP-Posting-Host: Atct97sWBy+y8dbuPwB9gnLVZd9ZawgoxekTkLiK+Xk=