Kubernetes semaphore Validating Webhook

Posted on Thu 24 September 2020 in Kubernetes • Tagged with Kubernetes, OpenShiftLeave a comment

After more than 2 years a new post!

In the path of learning Kubernetes Dynamic Admission Control I wrote a small webhook to be used as a semaphore to deny certains operations on k8s objects with a specific label.

k8s-semaphore is a quick and dirty web.py app implementing the ...

Continue reading

Introducing dcw: a Poor Man PaaS tool

Posted on Tue 28 March 2017 in Systems • Tagged with Docker, Bash, SSHLeave a comment

Dcw (Docker Compose Wrapper) is very small and dirty Bash script wrapping the docker-compose command. The meaning of such wrapper is to expose some docker-compose operations and a set of well defined commands on the host machine.

The typical use-case is an SSH command executed via the ~/.ssh/authorized_keys file ...

Continue reading

A DNS server with Batteries Included with PowerDNS, Docker and Python

Posted on Tue 06 September 2016 in Systems • Tagged with Docker, Python, REST, PowerDNSLeave a comment

If you have to frequently create, destroy and re-configure DNS zones for testing purposes you will agree that manually editing a Bind zone file is an annoying and error-prone task.

In order to make this job simpler I worked on this Docker container: the container instantiate a PowerDNS and provides ...

Continue reading

How to simulate a slow HTTP server with a Dockerized lighttpd

Posted on Tue 30 August 2016 in Hacks • Tagged with lighttpd, Docker, testingLeave a comment

Today I had to work on an issue related to troubled HTTP connections. So in order to reproduce such issue I had to find a way to easily reduce the bandwidth of the HTTP transfer.

After a quick Google search I landed on this Stackoverflow answer which suggested me the ...

Continue reading

How this website works

Posted on Wed 29 June 2016 in Cloud • Tagged with markdown, Pelican, Docker, githubLeave a comment

After many years on Wordpress I decided to move my website to a static website.

I decided to adopt Pelican: a static website builder based on python and supporting reStructuredText, Markdown, or AsciiDoc.

Moreover I decided to use GitHub pages to host the website.

The pdf plugin comes from Cyrille ...

Continue reading

Overwriting Latex image positioning in pandoc generated pdf

Posted on Tue 14 April 2015 in Hacks • Tagged with Latex, markdownLeave a comment

Pandoc is a very powerful tool, I'm extensively using it for writing documentation, papers and so on.
You can generate pdf, html, docx and many other formats trough a compilation of markdown source file.

Often I use it to produce nice PDF documents, in this process your Markdown document ...

Continue reading

A server launcher with log console in Python Tkinter

Posted on Fri 13 March 2015 in Python • Tagged with GUI, Multithreading, python, Tkinter, UDPLeave a comment

I'm working on an Tk application that should start and stop an UDP server, I need to show server logs in the Tk GUI with a "Pause & Resume" button.

I already have the UDP server implemented using the blocking SocketServer.BaseRequestHandler , so in order to wrap a GUI to ...

Continue reading

Changes on the Italian "Golden Tree"

Posted on Mon 02 March 2015 in VoIP • Tagged with dns, ENUM, VoIPLeave a comment

This is a continuation of my previous post about the +39 ENUM DNS zone.

Thanks to the powerful of the RIPE Database you can see all historical changes on a RIPE-assigned domain. Lets see what happen on the domain 9.3.e164.arpa.

List all changes on the domain object ...

Continue reading

What happened to the +39 (Italy) ENUM DNS Zone ?

Posted on Wed 25 February 2015 in VoIP • Tagged with ENUM, Italy, VoIPLeave a comment

ENUM is a DNS based algorithm used to store data associated with E.164 numbers (aka global phone numbers). Using ENUM you can associate your email or Skype or SIP contact along with your phone number.

So, registering your contacts in the ENUM tree you'll make yourself reachable trough ...

Continue reading

SIP packets filtering with iptables

Posted on Wed 22 January 2014 in VoIP • Tagged with iptables, netfilter, python, sipLeave a comment

One of the most powerful iptables match is the u32 module.
Using the u32 match you are able to write a firewall rule matching against a single bit of a network packet.

If you wanna play with u32 module you have to be prepared to deal with a syntax very ...

Continue reading