Skip to content

Instantly share code, notes, and snippets.

@kralo
kralo / a_TetraControl_Live_Web_Callmonitor.md
Created May 11, 2022
Live Callmonitor for Tetracontrol - Tetra Funkgespräche mit Details (in kleinem always-on-top Windows Fenster anzeigen geht mit Electron)
View a_TetraControl_Live_Web_Callmonitor.md

Live Tetra (Group-)Callmonitor für Tetracontrol

screenshot2

Hiermit lassen sich aktive Gespräche, die von TetraControl erfasst werden, live über Webtechnologien anzeigen.

Sehr hilfreich bei mehreren Funkkreisen und Arbeitsplätzen mit viel Bildschirmplatz, die ein kleines weiteres Fenster anzeigen können.

Es werden bis zu 4 Funkkreise unterstütz, mit Klick auf den blauen Text lassen die sich einfach verstecken/anzeigen.

@kralo
kralo / a_reresolve-dns-windows-powershell.md
Created Dec 14, 2021
Wireguard re-resolve dns script for dynamic endpoints (dyndns)
View a_reresolve-dns-windows-powershell.md

This is a script I use on windows for dynamic DNS endpoints ("servers").

The big upside is that it supports multiple configurations and does not need hard-coded endpoints or "ping-endpoints".

I have tested this in win7 and win10. You might add it to the task scheduler and run this every 3 minutes or so.

Some care has to be taken as to know which user is running the script. The encrypted dpapi-binary file can only be read by the same user that created/saved the tunnels, i.e. \system.

@kralo
kralo / a_Wireguard_Windows_Client_Unprivileged.md
Created Sep 10, 2021
wireguard client on windows unprivileged user restart tunnel
View a_Wireguard_Windows_Client_Unprivileged.md

Howto install wireguard as tunnel-Service when user is not local administrator.

See the setup .bat for setup. Key here is to set the service rights, so that anyone can restart the service.

See the restart script for how to restart. this is especially useful if the tunnel is "broken", because the peer is behind a dynamic dns service.

@kralo
kralo / a_electron_auto-resize_window_to_content.md
Last active Aug 15, 2021
electron_auto-resize_window_to_content
View a_electron_auto-resize_window_to_content.md

resize the electron app to match the content. Might be used for web-based Asterisk BLI-Pages or other unobstrusive notifications.

Window is always on top on Ubuntu/Windows

@kralo
kralo / linux_v4l2-ctl_example_usage.txt
Created Jan 26, 2021
Example usage how to get rough timing debug information
View linux_v4l2-ctl_example_usage.txt
$ v4l2-ctl --stream-mmap --stream-count=2 --verbose
VIDIOC_QUERYCAP: ok
VIDIOC_REQBUFS: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
@kralo
kralo / a_raspberry-pi4-cmio-ov9281-dual.md
Last active Apr 23, 2021
Raspberry Pi 4 CMIO with 2 ov9281 camera sensors
View a_raspberry-pi4-cmio-ov9281-dual.md

Raspberry Pi 4 CMIO with 2 ov9281 camera sensors

Tested with 2 Arducam "UC-599" and 2 Inno-maker "cam-mipiov9281"

Credits to 6by9 on the raspberrypi forums.

Howto:

  1. Connect the jumpers on the J6
  2. Download the *.dtbo file to /boot/overlays/
  3. Add the line to /boot/config.txt:
View lsusb-ov9281_camera.txt
# supposed to be CMT-120FPS-OV9281-C411 "Global Shutter, Black/White Image, 120FPS High Frame Rate, USB Camera Module with OV9281 sensor"
# v4l2-ctl
Driver Info (not using libv4l2):
Driver name : uvcvideo
Card type : USB Camera: USB Camera
Bus info : usb-0000:00:1a.0-1.5
Driver version: 4.15.18
Capabilities : 0x84200001
Video Capture
Streaming
@kralo
kralo / howto-securepointssl-nscerttype-error.md
Created Apr 1, 2020
securepoint ssl client openvpn require nsCertType=SERVER
View howto-securepointssl-nscerttype-error.md

If you experience this error VERIFY nsCertType ERROR: CN=server, require nsCertType=SERVER

try to update your Securepoint SSL VPN Client Version.

V. 2.0.18 did not work, V 2.0.28 did work.

Securepoint SSL Client 2.0.18 == not working
Try to start OpenVPN connection 
@kralo
kralo / IKEV2C_0USER.ini
Last active Nov 16, 2021
[HOWTO] configuration example for lancom host to ubuntu 16.04 vpn client
View IKEV2C_0USER.ini
[PROFILE1]
Name=T-IKEV2C_0USER
ConnMedia=21
ConnMode=0
SeamRoaming=1
PriVoIP=1
Gateway=1.2.3.4
PFS=14
UseComp=0
IkeIdType=3
@kralo
kralo / howto-xorg-framebuffer-default-size.txt
Created Apr 14, 2018
[HOWTO] Configure Xorg/X11 Framebuffer default size when no monitor attached
View howto-xorg-framebuffer-default-size.txt
# there is no monitor attached
$ xrandr -q -d :0
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 4096 x 4096
VGA-1 disconnected primary (normal left inverted right x axis y axis)
LVDS-1 disconnected (normal left inverted right x axis y axis)
DVI-D-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
# Write in xorg.conf