Author Archive

Arch linux recover GRUB

Boot the archlinux cd find you linux root partition with fdisk -l mount /dev/<root partition> /mnt arch-chroot /mnt /bin/bash grub-install /dev/sda

Test network speed

Computer1(listen) root@computer1:~# nc -vln 12345 >/dev/null   Computer2(send) root@computer2:~# dd if=/dev/zero bs=1M count=1K | nc -vn 12345 Connection to 12345 port [tcp/*] succeeded! 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB) copied, 16.7192 s, 64.2 MB/s

Enable the alt key in OS X terminal

Here is howto enable the alt key in terminal Terminal > Preferences > Settings > Keyboard select ‘Use option as meta key’

New network client notifier

This scripts listens to al broadcasts messages captured with tcpdump, registers all new discovered mac addresses in a txt table, it resolves the hostname by querying the wins server, and send a mail notification about the newly discovered clients hostname to all configured recipients.

Filter authlog

With this script you can filter the authlog log file, Script usage ./ <ip list file> <authlog file> <word> [-z] <ip list file>       #file with trusted ip adresses on each line <authlog file>   #authlog location, /var/log/authlog <word>            #pettern to grep from output, ‘Accept’ for all accepted logins -z                     #use zcat, for gziped log rotate log […]