rulu ruru

post MiciLOLky

January 3rd, 2009

Filed under: kabaret — starenka @ 12:35
Tags: , , , , ,

Kdo by neznal LOLcats a legendární ICanHasCheezburger. Fotešky (nejen) čičinek doplněný LOLspeakem. Některý kousky opravdu stojí za to archivovat a tak jsem se rozhod to vzít načisto - projdu feed a stáhnu obrázky, které ještě nemám. Ideální příhodit do cronu a rozšířit si svojí colekshun.

wget -O /tmp/icanhazf http://feedproxy.google.com/ICanHasCheezburger
perl -e ‘while (<>) { ~ /<img.*?src=\”(.*icanhas.*jpg)\”/; print $1."\n"; }’ /tmp/icanhazf | uniq > /tmp/icanhaz
wget -nc -i /tmp/icanhaz && rm /tmp/icanhaz /tmp/icanhazf

Dá-li Ceiling Cat, tak konečně dopíšu prohlížeč posledních LOLků a pochlubím se s ním. Jen jsem teď na vážkách, jestli to nebude stylovější psát v LOLPythonu

Popularity: 14% [?]

post Proxy checker

January 2nd, 2009

Filed under: web — starenka @ 13:40
Tags: , ,

Manualní čekování a dohledávání proxyn je opravdu strašnej opruz. Díky zlosynově skriptu, je to ale minulost. Dovolil jsem si použít svoje bash neskills a vytřídit jen funkční proxy spolu se státem odkud pochází (rád se koukám na BBC)

perl proxy-check.pl > /junk/list && grep found /junk/list | while read line; do proxy=$(line | cut -d" " -f5); echo -n $proxy; geoiplookup $(echo $proxy | cut -d":" -f1) | cut -d"," -f2; done

Popularity: 15% [?]

post Random status message plugin for Pidgin

May 5th, 2008

Filed under: linux, programming — starenka @ 16:55
Tags: , , ,

pidginThere was one thing I missed most while using Pidgin - a simple plugin, which pops a random status message on Pidgin start after given time interval. I loved this plugin I’ve seen first in Miranda so much that  I decided to astray to terra incognita - plugin writing and Perl. Well it took me couple hours to figure out how it works and to learn the basic Perl syntax, nevertheles I’m happy to anounce that “randomator” is ready for downloads now…

 INSTALLATION

Simply unpack the archive to your ~/.purple/plugins directory and paste your own messages into file named randomator.txt. Each line of this file is considered to be a message. After strarting Pidgin go to plugins menu (ctrl+u) and enable the plugin. You will also need to create a “new status” with some content in order to let the plugin change the messages..

 USAGE

 Well, the plugins looks after itself, so you don’t need to do more stuff. I guess I should make some preference dialog to set your own path to the message file, but I was kinda lazy to that.

SETTINGS

You can specify the interval between message change on line 47 in randomator.pl file Purple::timeout_add($plugin, 3600, \&set_message); The preset interval is 3600 seconds = one hour. 

DOWNLOAD

You can get the latest copy of the plugin here.

.

Popularity: 33% [?]

ruldrurd
© starenka 2oo7, cute alien monster by noizcut, original theme by Laurentiu Piron - customized by starenka | proudly powered by WordPress