• +++ WERBUNG +++

new website evolving…

sächsische Informations-Compagnie zu Berlin | Marcus Pauli

Posts Tagged 'code'

dovecot: remove maildirs

We are running dovecot as MDA. Dovecot gets its user details from OpenLDAP and adds new users automatically.  But removing a user in LDAP does not mean it gets removed in Dovecot as well. To have this a little bit … Continue reading →

17 November 2011 at 19:54 - Comments

Locate all Apple serial numbers in a subnet

The command ioreg -l | grep IOPlatformSerialNumber will show you your Mac’s serial number. With this, you can find out when your Mac has been created if you enter this number to https://selfsolve.apple.com/agreementWarrantyDynamic.do For…

11 November 2011 at 19:45 - Comments

Howto split a SQL database dump into table-wise files

Splitting a sql file containing a whole database into per-table files is quite easy: Grep the .sql for any occurence of DROP TABLE. Generate the file name from the table name that is included in the DROP TABLE statement. Echo … Continue reading &…

12 July 2011 at 19:09 - Comments

simplify your daily ssh usage… even more…

On MeyerMillerSmith.com I recently posted this one: Typing ssh commands can be very annoying but it doesn’t has to. There’s a quite nice way to simplify your daily admin life: shell scripts. Okay, let’s say we have a dozen servers &#8…

5 August 2010 at 17:40 - Comments

find out if your Apache is really serving the right hosts

From time to time it can happen that websites that used to be on your webservers are being moved by your clients without notifying you. Therefore, you will have to search for «zombie websites». I have the following setup: There is an Apache webserver that has a lot of websites. Each website has at least …

19 November 2009 at 20:13 - Comments

rebuilding Cyrus indexes

You might know the situation, something happened, and afterwards you get error messages from Cyrus telling you that your databases just have crashed. Then, your Inbox is shown empty while the filesystem does show the correct files. What happened? Every Cyrus folder contains three files «cyrus.cache», «cyrus.header» and «cyrus.index». These are responsible for telling the mail …

15 January 2009 at 16:10 - Comments

lighttpd and awstats

There are lots of howtos for running awstats with lighthttpd. Nearly all of them define a subdomain for statistics but miss to add the only line for defaulting to awstats.pl. Here is what you have to do to do it … Continue reading →

11 February 2008 at 11:39 - Comments

bringing awstats and mod_vhost_alias together

<!– @page { size: 21cm 29.7cm; margin: 2cm } P { margin-bottom: 0.21cm } H1 { margin-bottom: 0.21cm } H1.western { font-family: “Albany”; font-size: 16pt } H1.cjk { font-family: “HG Mincho Light J”; font-size: 16pt } H…

30 January 2008 at 20:41 - Comments