Inspired by @Framartin framapad-tools repository