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|

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|

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|

Booktop – Raspberry Pi zero W powered laptop book

I was thinking to myself, you have lots of factors of laptops that fit in a size of a book. So why hasn't anybody did a Booktop? A nice book with a whole computer inside for your enjoyment? It can also be fairly incognito as additional perk. I am aware it looks a bit wonky on the first picture, but that's mostly wooden glue before i have

By |June 11th, 2017|Categories: ALL, Electronics, How to|

Acer Travelmate 4150 retrofitting to Raspberry Pi Laptop: Part 1 – LCD and cleanup

First about the idea: I decided to try to create my own laptop with using one of older laptops not useful for anything else. Idea was to find a cheap one on ebay with working LCD and keyboard, ignoring everything else. Choosen laptop: Acer Travelmate 4150 15" Intel Centrino 1.73Ghz spares/rebuild. // Cost 15£ Perfect, It arrived fairly soon and everything seems to be in order. The

By |March 27th, 2017|Categories: ALL, Electronics, How to|Tags: , , , , , |

Duplicity scp/ssh backup on raspberry Pi

[wp_ad_camp_1] I want to use duplicity to backup my cloud server on Linode (You can use AWS as well or any other provider through which you can scp/ssh). Why I want to use duplicity is also because or partial backups, since the first backup will be full and all continuous ones will be only for the difference in files. Why Raspberry pi? It's cheap, low power and

By |March 1st, 2017|Categories: ALL, How to, The Code|

Pibakery example of first setup with wifi and on boot VNC ( for updated version of pibakery)

Recently Pibakery has released an update with updated blocks, that changed quite a bit in comparison to previous versions and improved with several additions of the new building blocks or simplification of the previous ones. Now you even have cron job scheduler which is absolutely amazing! First boot: Let's start with taking a look at First boot part of the image above: We start with enabling VLC

By |February 25th, 2017|Categories: ALL, Electronics, How to|

Finding faulty commit with git bisect

Recently the problem I have encountered was that the master got broken, possibly due to broken commit. Therefore I was investigating what would be the best and most appropriate way of finding a solution. Git bisect is a tool that uses binary search to find a faulty commit. Without something like this, your only other option is going through each of the commits until you found the

By |February 22nd, 2017|Categories: How to, The Code|

Installing Docker on Linode with WordPress image

After creating your new Debian/Ubuntu instance on your Linode manager console follow following steps. Instance update and docker install 1.) To upgrade your Linux instance with the newest relevant updates, to get our instance up to date (in our case running Ubuntu) . apt-get upgrade apt-get update 2.) There is an issue with Linode and Docker with dependancies, therefore following command needs to be run as well

By |February 17th, 2017|Categories: ALL, How to, The Code|