Posts
Automating Wallpaper Change Based on Webcam Activity using Python under Windows 11
Have you ever wanted to use your monitor as a makeshift light source when your webcam is active? In this tutorial, we’ll create a Python script that detects when your webcam is in use and automatically changes your desktop wallpaper to a bright white image. Once the webcam is inactive, it restores your default wallpaper.
What We’ll Cover Monitoring Webcam Activity: Using Windows Registry to detect active webcam applications. Changing Wallpaper Programmatically: Leveraging Python’s ctypes to update the desktop wallpaper.
read more
Posts
Restrict SSH Port Forwarding with IPTables
When running SSH services inside a container or virtual machine, you may want to restrict access to specific IP addresses. This blog post walks you through creating an IPTables script to forward and secure SSH access on your server.
The Use Case Imagine you have:
A Proxmox server with an LXC container running SSH. The external port 2222 on the host forwarding to the container’s SSH port 22. A need to allow access only from a specific IP address (e.
read more
Posts
Can I use Obsidian for creating MarkDown (.md) web pages?
I want to test bold, italic, strikethrough and ==highlighted== text on this line.
I want to create an ordered list below here
Item One Item Two Item Three The final item I want to create a bulleted list below here
Bulleted item 1 Bulleted item 2 Bulleted item 3 Final bulleted item I want to add code formatting below here
10 PRINT "labby.co.uk ";
20 GOTO 10
I want to add mathematical formatting below here
read more
Posts
FFMPEG multiple inputs to one stream
FFMPEG 4 sources to four windows I recently wanted to stream four sources to one output similar to this:
/--------|--------\ |INPUT 1 | INPUT 2| |--------+--------| |INPUT 3 | INPUT 4| \--------|--------/ Windows:
set i1=http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/TearsOfSteel.mp4 set i2=http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4 set i3=http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4 set i4=http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4 ffmpeg -hide_banner -loglevel error -hwaccel cuda -stream_loop -1 -i %i1% -stream_loop -1 -i %i2% -stream_loop -1 -i %i3% -stream_loop -1 -i %i4% -filter_complex "[0:a][1:a][2:a][3:a]amerge=inputs=4[a];[0:v]scale=800:480[v0];[1:v]scale=800:480[v1];[2:v]scale=800:480[v2];[3:v]scale=800:480[v3];[v0][v1][v2][v3]xstack=inputs=4:layout=0_0|w0_0|0_h0|w0_h0" -c:v h264_nvenc -map "[a]" -ac 2 -f flv pipe:1|ffplay -i - Explanation:
read more
Posts
My First Post
Introduction Welcome to labby.co.uk New server install so I thought I would play with something other than Wordpress. Too much infighting for me to bother with right now.
Playing with formatting: This is bold text, and this is emphasized text.
read more