Skip to content

Instantly share code, notes, and snippets.

@kralo
kralo / a_Wireguard_Windows_Client_Unprivileged.md
Created September 10, 2021 09:22
wireguard client on windows unprivileged user restart tunnel

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_reresolve-dns-windows-powershell.md
Created December 14, 2021 20:47
Wireguard re-resolve dns script for dynamic endpoints (dyndns)

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_TetraControl_Live_Web_Callmonitor.md
Created May 11, 2022 07:18
Live Callmonitor for Tetracontrol - Tetra Funkgespräche mit Details (in kleinem always-on-top Windows Fenster anzeigen geht mit Electron)

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 / export-csv-moodle.php
Created August 13, 2014 08:45
Example boilerplate for csv export from moodle
<?php
/**
* Example for howto to serve a csv file for download in Moodle using the /lib/csvlib.class.php
* Very handy for exporting various data. This example demonstrates csv data export from within a moodle plugin
*
* This file is public domain where applicable,
* else GNU LGPL
*/
require_once '../../config.php'; // to include $CFG, for example
require_once ($CFG->libdir . '/csvlib.class.php');
@kralo
kralo / a_rico_sp230sfnw_printer_scanner_linux.md
Created December 30, 2022 16:59
RICOH SP 230SFNw Printer/Scanner Linux

RICOH SP 230SFNw Printer/Scanner Linux

It's a dream come true! This machine works out of the box on ubuntu 22.10 !

printing works, scanning works!

cups printer

@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 / 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)
@kralo
kralo / rpi-buildskript.sh
Created July 18, 2023 14:22
Build kernel for raspberrypi and archive as tar for easy installation
#!/bin/bash
# inspired by the github-actions build-script https://github.com/raspberrypi/linux/blob/rpi-6.1.y/.github/workflows/kernel-build.yml
# on the pi, can be installed like so # SKIP_BACKUP=1 SKIP_DOWNLOAD=1 rpi-update http://192.168.178.32:8081/bcm2711_arm64_6.1.32-c2251ce04.tar.gz
set -x
name=bcm2711_arm64
arch=arm64
defconfig=bcm2711_defconfig
matrix_defconfig=$defconfig
kernel=kernel8
#!/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 / 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