My new expensive toy just came to life

localhost#show version
Arista DCS-7050QX-32-F
Hardware version: 02.11
Serial number: JPE1523XXXX
System MAC address: 001c.73XX.XXXX

Software image version: 4.14.5FX.2
Architecture: i386
Internal build version: 4.14.5FX.2-2328441.4145FX2
Internal build ID: 5f369972-3e94-403c-aee9-dd4cfba34d46

Uptime: [...]

Posted by HackMan
Dated: 26th September 2017
Filled Under: Uncategorized
Comments: Post the 1st one!

If you want to do A/B split testing with nginx, you usually are directed to the split clients module.
However, most of us don’t have this module compiled into their nginx installations and this usually results in using our code to do the actual A/B spliting.
Here is how you can do that, without the addition of [...]

Posted by HackMan
Dated: 27th July 2017
Filled Under: Uncategorized
Comments: Post the 1st one!

I’m using bird on my routers for a few years now, and every time I setup a new router I add these shell functions to help me monitor and debug network issues:

function bgp_states {
for i in $(birdc show protocols|sed ’s/\s\+/|/g’|grep BGP); do
a=(${i//|/ })
[...]

Posted by HackMan
Dated: 5th April 2017
Filled Under: Uncategorized
Comments: Post the 1st one!

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!