Tag Archives: grep

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 a whole network of Macs, this can become very boring. … Continue reading

Posted in howto, Software | Tagged , , , , , , , , , , , , | Leave a comment

Howto split a SQL database dump into table-wise files

sql files containing a single database 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 … Continue reading

Posted in howto, Linux | Tagged , , , , , , , , , , | 1 Comment

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 … Continue reading

Posted in howto, Linux, Webserver | Tagged , , , , , , , , , , , , , , , , | Leave a comment