Skip to content

Instantly share code, notes, and snippets.

@kralo
kralo / a_electron_auto-resize_window_to_content.md
Last active August 15, 2021 18:16
electron_auto-resize_window_to_content

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 January 26, 2021 13:52
Example usage how to get rough timing debug information
$ 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 October 18, 2023 00:27
Raspberry Pi 4 CMIO with 2 ov9281 camera sensors

Raspberry Pi 4 CMIO with 2 ov9281 camera sensors

THIS HAS CHANGED!

Now, all you need to do is add the following lines to your /boot/config.txt:

dtoverlay=ov9281
dtoverlay=ov9281,cam0
# 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 April 1, 2020 11:50
securepoint ssl client openvpn require nsCertType=SERVER

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 <redacted>
@kralo
kralo / IKEV2C_0USER.ini
Last active February 21, 2023 15:02
[HOWTO] configuration example for lancom host to ubuntu 16.04 vpn client
[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 April 14, 2018 06:33
[HOWTO] Configure Xorg/X11 Framebuffer default size when no monitor attached
# 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
@kralo
kralo / u-blox-m8n-1enable-sfrbx-rawx-hex.txt
Last active March 4, 2023 05:37
u-blox commands for activating SFRBX/RAWX (using RTKLIB) with M8N FW 3.01
# u-blox commands for activating SFRBX/RAWX (using RTKLIB) with M8N FW 3.01
# tested on an
# HW UBX-M8030 00080000*60
# EXT CORE 3.01 (107900)*33
# ROM BASE 2.01 (75331)*19
# FWVER=SPG 3.01*46
# PROTVER=18.00*11
# issue these commands in a terminal that supports sending HEX (e.g. ScriptCommunicator)
#!/bin/sh
# ntrip caster authentication and data quick-check
# quick test with curl to see if you actually get some sort of data at your mountpoint (will be illigible, but anyway)
# note the ridiculous User-Agent check
# replace the caster url, port and mountpoint
curl -v http://igs-ip.net:2101/ABMF0 -u user:password --header "Ntrip-Version: Ntrip/2.0" --header "User-Agent: NTRIP curl"
@kralo
kralo / demo-api-javascript-teamup.html
Created January 27, 2016 19:24
Small demo how to display an html widget for calendar events from the teamup API
<!DOCTYPE html>
<html>
<body>
<p>requirejs is used here in order to make the html snippet / widget work in the 1&1 MyWebsite </p>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.22/require.min.js"></script>
<div id="CalData"><p>Wird geladen...</p>
</div>
<script type="text/javascript">
require.config({
paths: {