Skip to content

Instantly share code, notes, and snippets.

@undone37
undone37 / fix_4kv4v_intune_linux.md
Created May 7, 2026 09:40
Fix Intune Portal for Linux 4kv4v Error

The login to Intune Portal fails on KDE Plasma with a Misconfiguration(0) error and a [4kv4v] code in the Microsoft auth window - same machine, same user, same tenant works under GNOME, the only difference being XDG_SESSION_DESKTOP.

The root cause: Intune Portal needs the freedesktop Secret portal (org.freedesktop.impl.portal.Secret) to store auth tokens. gnome-keyring implements the Secret portal backend - KWallet does not. So on a pure KDE box the lookup fails before the registration prompt is even shown, which is why you can't proceed past login. That's also why gnome-desktop-minimal "fixes" it: it pulls in gnome-keyring and xdg-desktop-portal-gtk as dependencies.

Minimal fix (no GNOME desktop)

Three things on top of plain KDE:

1. Install the keyring and the GTK portal backend:

@undone37
undone37 / intl_phone_regex.md
Last active October 28, 2021 11:58
Regex for international phone number in specific format

Regex for international phone number in specific format

This is a regex for the special format of a phone number like this:

+[COUNTRY CODE] ([AREA CODE]) [CONNECTION NUMBER][[-[EXTENSION]]]

\+\d{1,3}\s\(\d{2,}\)\s\d{3,}(-\d{1,4})?$
@undone37
undone37 / china-ipc.md
Last active November 11, 2018 19:44
Information on Zosi Wifi IP Camera (IPC PE3010-W) - China IP Wifi Camera

Information on Zosi Wifi IP Camera (IPC PE3010-W) - China IP Wifi Camera

IPC PE3010-W

Device Info

Device Name ip-camera

Device Model IPC

Hardware Version 1.3.0.

@undone37
undone37 / upload.php
Last active November 7, 2018 12:26 — forked from taterbase/upload.php
Einfacher PHP Datei Upload
<!DOCTYPE html>
<html>
<head>
<title>Dateiupload</title>
</head>
<body>
<form enctype="multipart/form-data" action="upload.php" method="POST">
<p>Laden Sie eine Datei hoch</p>
<input type="file" name="file"><br />
<input type="submit" value="Upload">