Skip to content

Instantly share code, notes, and snippets.

View bigfreak85's full-sized avatar

Raffael Willems bigfreak85

View GitHub Profile
@bigfreak85
bigfreak85 / 1 Waybar OpenVPN Toggler
Last active May 7, 2025 08:37
Waybar Plugin openvpn toggler Shellscript for start/stop/status openvpn client (Systemd-unit)
This Scripts and Config Snippets are for a little Symbol in the Waybar. If you Click on the Tunnelsymbol the OpenVPN-Client
establish a Connection to the given Config (Systemd Openvpn-Client). If you do not Need the Tunnel then you can Click again on
the Symbol and the VPN-Tunnel gets closed. The following moving Parts are needed:
1. The Waybar Config Snippit
2. The Toggle/Status Script
3. The Polkit Rule to allow the control of the OpenVPN-Client systemd-Unit by given user (a sudo nopasswd is also possible but
not so granular and allows systemctl completly)
@echo off
cd C:\s4y\Videoueberwachung\ffmpeg\bin
start ffmpeg ^
-i "http://192.168.178.26/videostream.cgi?user=USER&pwd=PWD" ^
-i "http://192.168.178.27/videostream.cgi?user=USER&pwd=PWD" ^
-filter_complex "[0]drawtext=box=1:boxcolor=black:boxborderw=2:fontcolor=white:text='CAM1 %%{localtime}':fontsize=14[c1];[1]drawtext=box=1:boxcolor=black:boxborderw=2:fontcolor=white:text='CAM2 %%{localtime}':fontsize=14[c2]" ^
#!/bin/bash
#************************************************************
#* Dateierstellungsmonitor V2.4 by Raffael Willems@RVI GmbH *
#* Dieses Script verschiebt nach Erstellung einer Datei in *
#* Ordner A diese automatisch in Ordner B *
#* Ordner B ist der VDI-Desktop, Ordner A Freigabe in die *
#* Scanner Dokument ablegt *
#************************************************************
counter=0
echo $$ > /var/run/changemon.pid
<?php
/*++++++++++++++++++ rwtime 1.0 by Raffael Willems 24.03.2016+++++++++++++
+ Dieses Programm kopiert Wochenweise von den Tagen das jeweils Xte Bild +
+ Danach werden die Bilder mit ffmpeg in ein Timelapse Video gestreamt +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
$quelle= "./aufnahmen";
$Ziel = "./temp";
$xbild = 5;
$startbild = 441; // 07:00