About Matjaz Trcek

Senior lead developer currently working in Java, architecture design, mix of tech from Front-end in JS and templating to chef,rundeck etc. For fun and challenge I am writing different blog posts from stories to poems, programming tutorials and many more. Currently working on my Masters degree on a part-time basis.

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|

Hello world with Node.JS 9.1.0 & Express 4.16.*

Sometimes, when you are picking up a new piece of tech it's hard to get started in it, since some of the things can be quite different to what you are used. The following article and the one that will follow are meant to provide as straightforward solutions as possible, with Github code examples that you can download. All the code example will try to reference the

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

Touch bar (Macbook pro) terminal automation – Better Touch Tool

Recently I upgraded my work computer to MacBook Pro 13 " with the new touch bar. But to be totally honest I quite dislike the default customisability of the touch bar that is included in os X by default. After a careful and in depth review of different solutions that could be use to amend that situation I stumbled upon BetterTouchTool (BTT in short), which is a

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

Using OVPN as secure centralisation to your workstation

Why? Why did I choose OVPN for me in this case? In short, this are the reasons: Server location in Germany and Sweden DNScrypt support Their infrastructure does not store logs, neither their Custom Debian system has any support for SATA or USB. Swedish jurisdiction P2P protocol support allowed And static IP4 support for centralisation in my case some other add-ons that you can check on their website but I don't

By |September 1st, 2017|Categories: ALL|