Archive for the ‘Linux’ Category
Sunday, May 17th, 2009
Below is a quick solution to making spamassassin learn from specific IMAP folders. Script represents a daily cron script and I just used sudo vpopmail (has to be the same as your spamd user) to simplify things. You probably should use user specific crontab...
#!/bin/bash
for F in `find /home/vpopmail/domains -type d ...
Posted in Linux | No Comments »
Monday, January 19th, 2009
Postanowiłem wreszcie trochę uporządkować czcionki używane do generowania dokumentów pdf oraz obrazków wykorzystujących czcionki ttf. Załączam zestaw gotowej do zainstalowania czytelnej czcionki z pakietu liberation-fonts. Które są upowszechnione na licencji GPL.
Pobierz
Posted in Linux, Web | No Comments »
Monday, January 12th, 2009
Postanowiłem udostępnić uzupełniony zbiór odmian polskich imion dla bazy MySQL.
Plik jest gotowy do importu do bazy MySQL, zawiera imiona, odmianę, płeć oraz ilość sylab występujących w imieniu. Można go wykorzystać na przykład w skryptach php wysyłających życzenia urodzinowe lub pozdrowienia.
W przypadku braku odmiany, proszę wpisać w komentarzach to uzupełnię.
Posted in Linux | 3 Comments »
Monday, September 17th, 2007
Well, just recently I discovered an error in my Apache2 log file saying:
127.0.0.1 - - [17/Sep/2007:20:10:32 +0200] "GET /" 400 466
Well, that is a SSL log, so I am working to figure out what it really is...
Ok, "tshark -i lo -S -V > dump.shark" command comes in handy to see ...
Posted in Linux | No Comments »
Saturday, September 15th, 2007
Ok, one more tip for today, which makes it very simple to change text within multiple files.
Say for example that you want to change Bush to Kerry in 50+ files ending with "html".
OK, now you could edit them, but it is too much of a hustle. Instead let's use sed ...
Posted in Linux | No Comments »
Saturday, September 15th, 2007
Once I came to a point of having downloaded 20+ tar.gz files and facing a need of finding an efficient way to extract them. If you are having such a problem then this simple solution will help:
for F in `find ./ -type f -name '*tar.gz' -print`;
do tar xvzf $F;
done;
What it ...
Posted in Linux | No Comments »