4 ms·
Funny thing: finger and .plans were what you are doing. Twitter is what you are doing. I wonder if in some alternate universe 'finger' would have became mains
by nailer 10y ago
Funny thing: finger and .plans were what you are doing.
Twitter is what you are doing.
I wonder if in some alternate universe 'finger' would have became mainstream.
- nandhp 10y agoWell, there's always something like this Finger-to-Twitter proxy: https://gist.github.com/mcroydon/519344 https://gist.github.com/mcroydon/519344
- AckSyn 10y agobut then i'd have to use node.js
- nandhp 10y agoTrue. So maybe it would be better to stick this one-liner in your inetd.conf. perl -MLWP::Simple -MCGI=escape -MHTML::Entities -MEncode -e '$u="";read(STDIN,$u,1,length($u)) while length($u)<128 and $u!~/\n/;$u=~s/^\/w//i;$u=~s/\s//g;if(!$u){print "This server cannot enumerate users.\r\n";exit}elsif(length($u)>128){exit}elsif($u=~/@/){print "Finger forwarding denied.\n";exit}foreach (split /\r?\n/,get("https://twitrss.me/twitter_user_to_rss/?user=".escape($u))) { if(/<title>([^<]+)/){$title=decode_entities($1)}elsif(/<dc:creator>.*\(@([^)<]+)\)/){$author=decode_entities($1)}elsif(/<\/item>/){print encode("utf8","$author: $title\r\n")}}' On the bright side, Finger is a simple enough protocol you can implement a full-featured RFC1288-compliant server (except for some optional features) in under 600 characters. Remind me again why nobody uses it anymore?
- AckSyn 10y agoThat's one heck of a 1-liner! I like it. >. Remind me again why nobody uses it (finger) anymore? People wanted "shiny" for their things.
- ucs 10y agoFunny thing: finger and .plans were what you are doing. Twitter is what you are doing. Even more apropos was finger's .project file: it was meant to be a single-line status update about your current project.
- petercooper 10y agoThe protocol is so simple and the client so pervasive (it's even on Windows by default) that you could still do something semi-interesting with it today, I reckon (for command line dwellers only though, it's just as easy to hit a URL and get some text back..)