Scripting

Detecting changes to your network services/damons

This is a tutorial to detect changes in port from hosts on your network. The basic approach is to ping every available address upon your subnet and see which ones are up by detecting replies. If you install the package libperl-net-ping you can use the following script to see which hosts upon your LAN are […]

Read More
Linux

MDB tools to export (migrate) from mdb (Microsoft Access format) to mySQL

This convertion could be obtained by first converting the tables in the mdb-file into CSV-files (Comma Separated Values) using MDB Tools and then by importing the csv-files into MySQL using phpMyAdmin. To export a given table from a mdb-file, we type: mdb-export db.mdb customers >> customers.csv In my case, since I got some danish characters, […]

Read More
Linux

Howto Convert Text File From UTF-8 to ISO-8859-1 Encoding

Convert a iso-8859-1 charset file into a utf-8 charset file. # iconv –-from-code=ISO-8859-1 –-to-code=UTF-8 iso.txt > utf.txt You can also use the console command recode # recode UTF-8 filename.txt Remember to make a backup of the file, because the changes are being done in the target file.

Read More