Viktor's Notes

Feel free to explore my notes

February 3, 2024

Automating App Deployment to a Virtual Machine Using GitHub Actions, Dockerfiles, and Docker-Compose

Explore an advanced guide on automating application deployment to a Virtual Machine using GitHub Actions, Dockerfiles, and Docker-Compose. Learn how to streamline your development workflow by integrating powerful technologies for efficient and reliable deployment.

Security
SSH
Deploy
Docker

October 27, 2023

Enhancing GUI Applications Within Docker Containers

Docker streamlines software consistency but lacks GUI support. For MacOS, XQuartz fills this void, enabling GUI applications within Docker containers. Dive deeper to harness Docker's full potential.

Docker
GUI

April 14, 2025

How to Set Up a Secure SSH Connection to Your Raspberry Pi (with CI Integration)

Explore an advanced guide on enabling SSH secure connection to a remote device. Learn how to set up SSH key-based authentication and integrate it into a CI pipeline such as GitHub Actions.

SSH
Security
Deploy
CI/CD

April 14, 2025

Expose Your Raspberry Pi to the Internet with Cloudflare Tunnel

Explore an advanced guide on exposing your Raspberry Pi to the internet using Cloudflare Tunnel. Learn how to expose your local applications to the internet with ease.

Raspberry Pi
Deploy
Networking

October 22, 2023

Decoding Video Using FFmpeg: A Journey Into the World of Video Manipulation

Using FFmpeg, videos are sequences of frames rapidly displayed. By manipulating a 5-second black video, we demonstrated decoding it into images and then encoding these images back into a video. This process provides insights into video encoding, decoding, and the intricacies of video playback.

FFmpeg
Video

October 30, 2023

Collaborative Power of GitHub Pages

GitHub Pages offers seamless project hosting. This guide covers setup, auto-deployments with GitHub Actions, and live project viewing, enhancing development collaboration.

General
Github

September 30, 2023

Setting Up a Node.js HTTP Server

Learn to set up an Express server in Node.js, handle CORS, and manage dependencies. Dive in for a streamlined server initialization guide.

General
HTTP
Javascript

November 6, 2023

Optimizing Client-Side Rendered React Applications with Server-Side Rendering Using Express.js

Discover the advantages of server-side rendering for React apps with our comprehensive guide. Learn to enhance performance, improve SEO, and optimize user experience by integrating Express.js into your workflow

Performance
Javascript
Frontend

November 8, 2023

Enhancing Video Streaming with Adaptive Bitrate (ABR) Algorithms

Explore the dynamic world of video streaming with our deep dive into Adaptive Bitrate (ABR) streaming. Learn how the BOLA algorithm enhances viewer experience by optimizing video quality in real-time, reducing buffering, and ensuring seamless playback

Video
Javascript
Algorithm

October 2, 2023

Unlocking Secure Playback: Exploring EME with MSE

Discover the power of Encrypted Media Extensions (EME) integrated with Media Source Extensions (MSE) for secure web media playback. Dive deep into video encryption, key management, and hands-on decryption in this comprehensive guide.

Video
Javascript
Encryption

October 6, 2023

Media Source Extensions for Multi-Quality Playback

Dive into Adaptive Bitrate (ABR) for modern streaming. Learn to use Media Source Extensions for multi-quality playback and understand the role of an ABR Manager

Video
Javascript

October 7, 2023

Media Source Extensions using MPD Parser

Master web-based content playback using MSE & MPEG-DASH. Learn to set up a Webpack server, stream videos, and build a custom MSE Player. Elevate your web media.

Video
Javascript

October 25, 2023

Mastering Navigation in React Applications with React Router v6

Navigate React apps with React Router v6 and React 18. This guide simplifies modern routing techniques for optimal React development.

React
Javascript

December 15, 2023

Installing SSL and Moving to HTTPS on Our Website with Let's Encrypt

Learn how to secure your website with SSL using Let's Encrypt and Certbot. This comprehensive guide covers the installation of SSL on Linux and macOS, explains SSL certificates, and the role of Certificate Authorities, ensuring enhanced website security and credibility.

Security
SSL

April 8, 2025

Automating Github CI workflow for SSL certificates

Learn how to securely automate your CI pipeline with GitHub Actions by handling private SSL certificates without exposing them in your repository. This guide walks you through a simple, base64-encoded secret management approach that keeps your builds both safe and fully automated.

Security
SSL
Deploy

January 11, 2024

Building a WPE and RDK Image for Raspberry Pi 4B Using Buildroot

Explore the comprehensive guide to building a WPE and RDK image for Raspberry Pi 4B using Buildroot. This detailed blog covers everything from setting up a virtual machine, configuring Buildroot, to navigating ThunderUI and Metrologic UI, providing essential insights for enthusiasts and professionals in embedded systems development.

Embedded
WPE
RDK
Raspberry

April 14, 2025

Setting Up a Raspberry Pi 4B as a GitHub Actions Self-Hosted Runner

Setting up a Raspberry Pi 4B as a GitHub Actions self-hosted runner is a powerful way to extend your CI/CD infrastructure. This guide simplifies the process of setting up a self-hosted runner on a Raspberry Pi 4B and configuring it to run in the background on boot.

General
Github
Raspberry Pi

June 18, 2025

Provision AWS Secret Manager and Store Secrets Securely

Learn how to securely store and access secrets using AWS Secrets Manager and Terraform. This guide walks through setting up secret storage, IAM roles, and integrating secrets with your EC2 instances

AWS
Terraform

June 8, 2025

Provision CloudFront CDN with Terraform

Provision HTTPS with CloudFront and ACM using Terraform. Set up a CloudFront distribution with an EC2 origin, generate an SSL certificate via ACM in us-east-1, validate via Route53, and enforce secure access to your site over HTTPS.

AWS
Terraform

June 11, 2025

Provision Datadog Observability on Ec-2 with Terraform

Learn how to provision observability on an AWS EC2 instance using Terraform and the Datadog Agent. This guide walks through automating Datadog agent installation via EC2 user_data, securely managing API keys, and verifying the setup through logs and the Datadog dashboard.

Datadog
Terraform

June 8, 2025

Provision DNS records with Terraform

Learn how to expose your EC2-hosted app via a custom domain using Terraform and AWS Route 53. This guide walks through setting up an HTTP server, creating DNS records, and pointing your domain to a static IP.

AWS
Terraform

July 4, 2025

Deploying EC2 as Remote Proxy for Raspberry Pi using Terraform and Ansible

Learn how to expose your Raspberry Pi to the internet securely using an EC2-based reverse proxy — fully automated with Terraform and Ansible. This guide walks you through a modular, reproducible setup ideal for devices behind NAT or dynamic IPs.

AWS
RaspberryPi
Terraform
Ansible

June 3, 2025

Deploying EC2 instance on AWS with Terraform

Learn how to deploy an EC2 instance on AWS using Terraform, from setting up AWS credentials to provisioning a secure and scalable infrastructure with VPC, subnets, and security groups. A practical, step-by-step guide for beginners and DevOps enthusiasts alike.

AWS
Terraform

June 20, 2025

Scaling our infra - from 1 EC-2 to ECS

Learn how to scale your infrastructure from a single EC2 instance to an ECS-managed cluster using Terraform. This guide covers ECS clusters, task definitions, and services — setting the stage for rolling updates and higher availability. Perfect for devs leveling up their AWS game.

AWS
Terraform

July 2, 2025

Provisioning IAM with Terraform for secure AWS access

Provision IAM users and policies with Terraform to securely manage AWS access without using the root account. This setup ensures least-privilege permissions, automates key generation for programmatic access, and highlights the importance of securing Terraform state files to protect sensitive credentials.

Terraform
AWS
IAM

June 20, 2025

Provision Pagerduty with Terraform

Learn how to provision and automate PagerDuty incident management using Terraform. This step-by-step guide covers setting up PagerDuty provider, creating services and escalation policies, integrating with Datadog for monitoring, and automating alerts and incident creation. Perfect for developers and DevOps teams wanting proactive incident response and seamless cloud alerting.

AWS
Terraform
PagerDuty

July 1, 2025

Provisioning PostgresSQL RDBMS on AWS with Terraform

Provision a secure PostgreSQL database on AWS with Terraform. Set up RDS, private subnets, and secrets, then connect it to your Docker app running on EC2.

AWS
RDS
EC2
Terraform

July 2, 2025

Provisioning S3 with Terraform

Provision an encrypted, versioned S3 bucket with secure access using Terraform modules. Integrate it cleanly with IAM for automated, scoped permissions.

Terraform
AWS
S3

June 8, 2025

Provision SSL and HTTPS with Terraform using Cloudfront, ACM, Route53 and Ec2

Set up HTTPS for your EC2 app using Terraform with ACM, CloudFront, and Route53. You’ll provision an SSL certificate in us-east-1, validate it via DNS, and configure CloudFront to serve traffic securely over HTTPS using your custom domain.

AWS
Terraform

November 2, 2023

Integrating WebVTT Subtitles with Media Source Extensions

Learn how to integrate WebVTT subtitles with HTML5 Media Source Extensions for enhanced video accessibility. Follow our step-by-step guide for a seamless viewing experience with best practices for subtitle visibility and synchronization.

Video
Javascript

January 22, 2024

Enabling Port Forwarding on Your Local Machine

Unlock the power of port forwarding on OpenWRT with our personalized guide. Navigate the setup, address security concerns, and add an extra layer with SSL/TLS certificates for a secure and accessible digital experience.

Network
Security

June 30, 2025

End-to-End Local PostgreSQL Workflow for Full-Stack Development

Learn how to set up a local PostgreSQL database using Docker for your Next.js project. This guide covers everything from container setup and schema initialization to seeding data and connecting from the frontend—ideal for smooth local development.

Typescript
Docker
PostgresSQL

June 26, 2025

Provisioning Application Load Balancer and connecting it to ECS using Terraform

Provision an AWS Application Load Balancer with Terraform and connect it to your ECS cluster, enabling secure HTTPS traffic distribution across multiple availability zones.

AWS
Terraform

June 26, 2025

Provisioning Application Load Balancer and connecting it to Ec-2 instance using Terraform

Learn how to provision an HTTPS-enabled Application Load Balancer in AWS using Terraform and connect it to a single EC2 instance. Ideal for personal projects or early-stage startups avoiding full cluster complexity. Full code and modular best practices included.

AWS
Terraform
SSL
AWS Load Balancer
EC2

Jul 23, 2025

Live Streaming - Raspberry pi streaming with Picamera2

This guide explains how to build a live streaming setup using Raspberry Pi with Picamera2, FFmpeg, and FastAPI. It covers capturing video, converting it to HLS, serving segments via a web server, and managing streaming control through MQTT.

Video
Javascript
Raspberrypi
Picamera2
Live Streaming
HLS
AWS IoT Core

Jul 23, 2025

Live Camera Streaming from Raspberry Pi with Camera Module and Picamera2 - the easy way

Live stream video from a Raspberry Pi with the Sony IMX500 AI Camera using Picamera2. This guide shows how to serve MJPEG video over HTTP and display it simply with a native <img> tag in a web frontend—perfect for fast prototyping AI camera projects.

Video
Javascript
Raspberrypi
Picamera2
Live Streaming
HLS

Jul 25, 2025

WebRTC - Zero latency streaming with Raspberry pi streaming with Picamera2

Explore how to achieve near-zero latency live streaming from a Raspberry Pi camera using WebRTC. This guide covers the full end-to-end implementation, replacing traditional HLS streaming with real-time WebRTC communication ideal for robotics and remote security applications.

Video
Javascript
Python
Raspberrypi
Picamera2
Live Streaming
WebRTC

May 23, 2025

Provisioning EC2 Instances with Terraform Modules – Best Practices Guide

Learn how to provision an AWS EC2 instance using Terraform modules and best practices. This step-by-step guide covers modularization, reusable infrastructure, DNS setup, HTTP server automation, and multi-environment configuration for dev and prod.

Terraform
EC-2
AWS

November 5, 2023

Seamlessly Integrating React with Webpack for Modern Web Development

Explore our step-by-step guide to integrating React with Webpack, enhancing your web development workflow. This article covers everything from setting up React dependencies to configuring Babel, ensuring a seamless development experience with the latest React v18 features.

React
Javascript

May 23, 2025

From Zero to SSH: Setting Up Raspberry Pi with OS Lite and Ansible Automation

Learn how to set up a Raspberry Pi from scratch using Raspberry Pi OS Lite, configure headless SSH access with public-key authentication, and automate software installation using Ansible. A hands-on guide for developers and makers who want a repeatable and efficient Raspberry Pi setup.

Network
Raspberry Pi
SSH

July 1, 2025

Terraform - AWS Deploy using Github Actions

Learn how to run Terraform on GitHub Actions by using AWS credentials as environment variables instead of profiles. This guide covers setting GitHub Secrets for AWS, configuring your workflow, and automating Terraform init and apply commands for seamless AWS deployments in CI/CD.

Github
AWS
Terraform

June 18, 2025

Saving Terraform State in a Remote Backend on AWS with S3 and DynamoDB

Learn how to set up remote state storage for Terraform using AWS S3 and DynamoDB. This guide walks through backend provisioning, configuration, and best practices for safe, collaborative IaC workflows.

AWS
Terraform

September 20, 2023

Setting Up a Webpack Project

Dive into web development with this guide on setting up a Webpack project. Harness efficient code bundling and integrate TypeScript for a streamlined development experience

General
Webpack
Javascript

Aug 7, 2025

AWS IoT Core - Implementing Advanced MQTT RPC pattern

Learn how to implement an advanced MQTT RPC (Remote Procedure Call) pattern using AWS IoT Core, enabling synchronous-like communication over asynchronous MQTT. This guide builds on previous tutorials and introduces a robust, production-ready RPC client in Python with timeout handling, unsubscription, and request correlation.

Terraform
IOT
EC2
MQTT
AWS

September 25, 2023

Mastering Media Source Extensions (MSE) for Web Development

Dive deep into Media Source Extensions (MSE) for enhanced web development. Learn to manipulate media streams for a tailored playback experience. Master MSE with our comprehensive guide.

Video
Javascript

Jul 18, 2025

Provisioning AWS IoT Core Certificates for Raspberry Pi - MQTT Publisher for MQTT Broker with Terraform

Provision AWS IoT Core certificates for your Raspberry Pi using Terraform to securely connect to an MQTT broker. This guide covers X.509 certs, IoT policies, secure key handling, and automated deployment via Ansible.

Terraform
IOT
Raspberry Pi
MQTT
AWS

September 22, 2023

Mastering Video Element Playback

Dive deep into mastering video element playback in web development. This guide covers the essentials of embedding videos with the HTML <video> element, ensuring seamless playback, and implementing custom controls

General
Video
Javascript

October 28, 2023

How to Effectively Integrate Custom Fonts in Web Projects: A Step-by-Step Guide

Explore web typography basics, learn about TrueType Font files, and understand how to integrate them with Webpack. A straightforward guide to enhancing your web projects.

Design
CSS

Jul 18, 2025

Provisioning AWS IoT Core Certificates for Ec-2 instance for MQTT Broker with Terraform

Provision AWS IoT Core certificates for an EC2 instance using Terraform and securely inject them as base64-encoded secrets via AWS Secrets Manager. This guide covers setting up MQTT subscribers in a secure, scalable way for web services.

Terraform
IOT
EC2
MQTT
AWS

Aug 14, 2025

Mastering FastAPI with PostgreSQL: From Setup to Database-Driven APIs

Learn how to build a Python FastAPI web server fully integrated with a PostgreSQL database. This step-by-step guide covers environment setup, database connection, CRUD operations with SQLModel, and proper migrations using Alembic for a production-ready workflow. Perfect for developers looking to combine FastAPI and PostgreSQL efficiently.

Web Development
Python
FastAPI
PostgreSQL
Alembic
SQLModel
Migrations

July 31, 2025

Raspberry pi - Health Check to get your device health

Learn how to implement a basic health check system for your Raspberry Pi devices using Python. This guide covers monitoring CPU, memory, disk usage, and uptime with psutil, and communicating device status over MQTT for reliable remote device management—ideal for business or IoT applications.

Raspberry Pi
Python

Aug 12, 2025

Full-stack JWT Authentication with Clerk, NextJS, FastAPI and Terraform

Learn how to implement secure, end-to-end authentication using Clerk with Next.js, FastAPI, and Terraform. Covers JWT validation, route protection, and production deployment best practices.

NextJS
Typescript
Python
JWT
Terraform
Clerk

Aug 21, 2025

Provisioning API Gateway and connecting it to Ec-2 instance using Terraform

Learn how to provision an AWS API Gateway and connect it to an EC2 instance using Terraform, including SSL termination with ACM and DNS routing via Route 53. This guide offers a cost-effective alternative to ALB or CloudFront for personal projects, with step-by-step Terraform examples and security considerations.

AWS
Terraform
SSL
AWS API Gateway
EC2

Jul 18, 2025

AWS IoT Core - Implementing Publisher and Subscriber for MQTT in Python

Explore how to implement a robust MQTT publisher and subscriber using Python on AWS IoT Core. This guide demonstrates setting up secure, bi-directional communication between a Raspberry Pi device and a web server leveraging AWS IoT Core and the AWS IoT Device SDK. Perfect for turning your Pi into a full-fledged IoT client with real-time message exchange.

Terraform
IOT
Raspberry Pi
MQTT
AWS