I was featured at PerlAdvent calendar 2016 with my article about controlling Linux Containers with Perl
The PerlAdvent calendar is a very nice way to countdown the days till Christmas

Posted by HackMan
Dated: 20th December 2016
Filled Under: Uncategorized
Comments: Post the 1st one!

Bird’s memory usage with 8 BGP sessions (6 of which full BGP tables):

root@sfgw:~# birdc show memory
BIRD 1.5.0 ready.
BIRD memory usage
Routing tables: 160 MB
Route attributes: 136 MB
ROA tables: 112 B
Protocols: 68 kB
Total: [...]

Posted by HackMan
Dated: 23rd February 2016
Filled Under: Networking, Technology, Uncategorized
Comments: Post the 1st one!

I finally decided to request full BGP tables from all of my ISPs, so I can easily change the preferred path to certain destinations.
However this meant that now I have to monitor both the state of the BGP sessions, but also the amount of routes that I receive from my neighbors.
Before my days with full [...]

Posted by HackMan
Dated: 19th February 2016
Filled Under: Linux General, Networking, Technology, Uncategorized
Comments: Post the 1st one!

Since I started using Linux::Unshare after I created my Linux::Setns I found that unshare was missing a few tests.
I added them and sent a patch to the current maintainer Boris Sukholitko. However a few days later he wrote to me that he is no longer maintaining the module and proposed that I should take over [...]

Posted by HackMan
Dated: 28th July 2014
Filled Under: Technology, Uncategorized
Comments: Post the 1st one!

Around OHM2013 I started using Xchat again to manage all the IRC networks I have to be on.
Pidgin simply could not do the job.
However I have to constantly authenticate my self against services. Unfortunately I have lost my ns-authenticate.pl plugin so I wrote a new one

#!/usr/bin/perl
use strict;
use warnings;

Xchat::register(’NS Identify’, ‘0.2′, ‘Identify against NickServ’);
Xchat::hook_server( [...]

Posted by HackMan
Dated: 9th August 2013
Filled Under: Uncategorized
Comments: Post the 1st one!

For a project that I’m working on I had to create MAC generator. Initially I decided that I will do it in BASH.

function gen_mac() {
mac_vars=(0 1 2 3 4 5 6 7 8 9 a b c d e f)
[...]

Posted by HackMan
Dated: 25th March 2013
Filled Under: Uncategorized
Comments: Post the 1st one!

Today I decided to play a bit with my Raspberry Pi and one of my Relay shields that I have for the Arduino.
I was surprised to see how easy it was to control and read the GPIOs on the Raspberry. So I decided to make it even easier by writing a simple bash script [...]

Posted by HackMan
Dated: 1st December 2012
Filled Under: Uncategorized
Comments: Post the 1st one!

For the past 3 times when I was teaching Linux System and Network Administration at the Sofia University I’m using a tool to generate the tests.
Since today I had to again fix some issues in the generator I decided that I will publish it on GitHub.
So here is the repository.

Posted by HackMan
Dated: 29th November 2012
Filled Under: Uncategorized
Comments: Post the 1st one!

For a few years I was thinking about controlling the (un)locking and start/stop of my car via GSM. Two weeks ago, me and a friend of mine finally did it. Using a simple Arduino Uno plus GPRS Shield and Relay Shield we were able to call the Arduino and trigger a relay to open or [...]

Posted by HackMan
Dated: 24th November 2012
Filled Under: Uncategorized
Comments: Post the 1st one!

Here is one pretty easy and useful one liner in Perl:
perl -MDevice::SerialPort -e ‘Device::SerialPort->new(”/dev/ttyACM0″)->pulse_dtr_on(300);’
And here is a fully functional perl script that I wrote for the same purpose:

#!/usr/bin/perl
use Device::SerialPort;

sub find_dev {
my $test = shift;
my $dev = ”;
[...]

Posted by HackMan
Dated: 24th November 2012
Filled Under: Uncategorized
Comments: Post the 1st one!