Skip to content

Instantly share code, notes, and snippets.

View luxus's full-sized avatar

luxus luxus

  • Infoguard AG
  • Switzerland
  • 04:21 (UTC +02:00)
  • X @luxus
View GitHub Profile
@luxus
luxus / cuda-gl-dmabuf.patch
Created July 11, 2026 19:28
polaris-stream portal HDR/DmaBuf patches for gamescope (luxusAi): portal capture, EGL TexStorageEXT, CUDA GL import
From: luxusAi
Subject: cuda: GL encode path — EGL import + mmap fallback, renderD prefer
Drop CUDA extmem (INVALID_VALUE on gamescope). Prefer render node.
EGL import with fd cache; mmap fallback is logged visibly.
--- a/src/platform/linux/cuda.cpp
+++ b/src/platform/linux/cuda.cpp
@@ -3,9 +3,12 @@
* @brief Definitions for CUDA encoding.
# NVIDIA drivers + CUDA — machines tagged gpu-nvidia
# Supports Turing+ GPUs (RTX 2070, RTX 4090, etc.) with open kernel modules.
{
flake.modules.nixos.nvidia =
{
pkgs,
config,
...
}:
{
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Kai Löhnert",
"label": "Presales Consultant – Penetration Testing Services | Cybersecurity Specialist",
"image": "https://unavatar.io/x/luxus",
"email": "kl82@me.com",
"phone": "0775299372",
"url": "https://luxus.ai",
"summary": "Sales-driven cybersecurity specialist with 12 years of customer-facing experience at Apple and 3 years in IT engineering and presales consulting. Expert in penetration testing services, including external/internal tests, simulated attacks, red/purple teaming, web application audits, mobile app tests, and M365 assessments. Adept at scoping customer requirements, collaborating with pentesting teams, and developing proposal content. Active contributor to AI initiatives and portfolio optimization in regulated environments such as DORA.",
-- AstroNvim Configuration Table
-- All configuration changes should go inside of the table below
-- You can think of a Lua "table" as a dictionary like data structure the
-- normal format is "key = value". These also handle array like data structures
-- where a value with no key simply has an implicit numeric key
local config = {
-- Configure AstroNvim updates
updater = {
@luxus
luxus / init.lua
Created April 17, 2023 04:41
.config/nvim/lua/user/init.lua only added tokyonight
-- AstroNvim Configuration Table
-- All configuration changes should go inside of the table below
-- You can think of a Lua "table" as a dictionary like data structure the
-- normal format is "key = value". These also handle array like data structures
-- where a value with no key simply has an implicit numeric key
local config = {
-- Configure AstroNvim updates
updater = {
local font = {
family = "MonoLisa",
bold = "Medium",
weight = "Regular",
boldItalic = "Medium Italic",
italic = "Regular Italic",
}
return {
exec-once=/nix/store/js3215xajs1m05iq2bgpbjp2phvd9b33-dbus-1.14.0/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP; systemctl --user start hyprland-session.target
monitor=DP-1,2560x1440@60,0x0,1
workspace=DP-1,1
monitor=DP-2,2560x1440@60,2560x0,1
workspace=DP-2,2
general {
main_mod=SUPER
gaps_in=15
gaps_out=20
#!/usr/bin/env bash
# Installs NixOS on an OVH server, wiping the server.
#
# This is for a specific server configuration; adjust where needed.
# Originally written for an OVH STOR-1 server.
#
# Prerequisites:
# * Create a LUKS key file at /root/benacofs-luks-key
# e.g. by copying it up.
@luxus
luxus / yet_another_motion_automation.yaml
Created June 20, 2022 23:42 — forked from networkingcat/yet_another_motion_automation.yaml
Homeassistant blueprint for motion-activated light scene
blueprint:
name: Yet Another Motion Automation
description: >
# YAMA V10
Turn on lights or scenes when motion is detected.
Four different scenes can be defined depending on time of day.
#!/bin/zsh
# {{@@ header() @@}}
# quck fix for tmux detach loosing ssh_socket
if [ ! -S ~/.ssh/ssh_auth_sock ] && [ -S "$SSH_AUTH_SOCK" ]; then
ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock
fi
#
# Startup