Explosive Illy cans in France

It's normal there are issues in the production and that subsequently sometimes you need to issue a recall when issues arise after the actual distribution. But on the other hand there are also things that can not be justified and are ignorant on the responsibility of the company. Welcome to my issue, the still exploding Illy cans. Due to the changes of the design in the Illy

By |September 3rd, 2018|Categories: ALL|

Get weekly CPU usage function – AWS Python Lambda

Let's first cover the gist of the actual functionality that will be responsible for giving us averaged CPU utilization during a specific time frame. The code itself is a run of the mill kind of code but already coupled in a nice working example so quite easy adapted. If we take a look at the function bellow... import boto3 import sys from datetime import datetime, timedelta

By |August 23rd, 2018|Categories: ALL, How to, The Code|

Kubernetes Dashboard with kops

Following is an example of simplest possible setup of dashboard add-on for kops. By default we utilize the official yaml configuration which already works fabulously with basic user-authentication. That should be perfect for a very small or one person team. Generally though, it is very smart to double check security of the monitoring service itself and extend upon it. First run the yaml configuration of kops dashboard

By |July 18th, 2018|Categories: ALL, The Code|Tags: , , |

docker-compose Jenkins with persistent data

This guide will focus on the local environment for now, but should be easy to adapt to higher env's. The focus of the guide is how to run Jenkins image, add changes to it, and load then on next start. Create a following file on your local machine and go to that location in the terminal. docker-compose.yaml file: version: '2' services: jenkins: image: 'jenkins/jenkins:lts' labels: kompose.service.type:

By |June 6th, 2018|Categories: ALL, How to, The Code|

Git pull a project and more – Better touch tool – TouchBar

This is a short tutorial on how to setup Terminal command with Better touch tool in one of my use cases. In my case I used Synchronous blocking terminal command that git pulls from the repo and at the same time remakes changes to one configuration file to prepare it for local development.  Get BTT and install it Under TouchBar add a Global TouchBar button.  (Of course you

By |May 30th, 2018|Categories: ALL|

Interesting command lines

Capture video Macbook webcam with cpu accelerated Captures video from webcam and encodes it using the accelerated hardware provided by videotoolbox framework. It takes about 20% cpu in a i5 2015 macbook air. ffmpeg -f avfoundation -framerate 30 -video_size 1280x720 -pix_fmt uyvy422 -i "0" -c:v h264_videotoolbox -profile:v high -b:v 3M -color_range 1 /tmp/out.mp4 Command-line russian roulette This command-line is so beautiful you don't even want to run

By |January 16th, 2018|Categories: ALL, The Code|

How to setup automatic Lets Encrypt renewal with cronjob when using Easy Engine

It's a short but sweet mini-article. On my personal server I am using Easy Engine for easier setup of several pages, being WP or pure static websites. And nowadays everyone really love to use SSL, for a good reason of course I prefer to use Lets Encrypt SSL that is also part of an Easy Engine. If you want to automate the SSL renewal, I'd suggest placing this

By |December 23rd, 2017|Categories: ALL|

Smart home devices for 2017

In this collection which I am doing mostly for myself. I'm compiling a list of IoT devices that I want to use for my home automation. Majority of products should be compatible with modern hubs such as Alexa. Even though my aim is to make everything connected via OpenHAB and Alexa. Some of the products are not really properly tested but if it at least inspires you,

By |November 21st, 2017|Categories: ALL|

Java GUI terminal interaction example

The following example will go over following Github repo created specifically for this. Github:  https://github.com/mitola/selftomator It was primarily aimed to provide a bit of exploration space since I was looking at several ways to automate a couple of my workflows, so I explored through Java, Node.JS, terminal solutions etc. In the current iteration of the project certain things are already prepared. The main class, that calls the

By |November 19th, 2017|Categories: ALL, How to, The Code|