Skip to content

Instantly share code, notes, and snippets.

View StarGate01's full-sized avatar

Christoph Honal StarGate01

View GitHub Profile
@StarGate01
StarGate01 / nixos-ipu6.md
Created April 18, 2026 01:50
IPU6 Camera Stack — NixOS Configuration Notes

IPU6 Camera Stack — NixOS Configuration Notes

This document explains the non-obvious configuration required to make the Intel IPU6 MIPI camera work reliably on this machine (Lenovo ThinkPad Yoga X1 Gen 8, ipu6ep platform).

Camera stack overview

ipu6-drivers (out-of-tree: psys driver + i2c sensor drivers)
intel kernel ≥ 6.10 (in-tree: intel_ipu6 + intel_ipu6_isys)
 └─ intel_ipu6_isys ← creates /dev/video2..33 (32 raw capture nodes)
@StarGate01
StarGate01 / xsetwacom_my_preferences.sh
Created May 5, 2020 14:35
Wacom tablet display switcher
#!/bin/bash
# Thanks to https://bitbucket.org/denilsonsa/small_scripts/src/3380435f92646190f860b87f566a39d0e215034c/xsetwacom_my_preferences.sh?at=default
# I added fixes for closed source nvidia driver
#
# CONFIGURATION
# Set this to your (stylus) device. Find it by running:
# xsetwacom --list devices
DEVICE='Wacom Intuos S Pen stylus'
@StarGate01
StarGate01 / HWLAN.ps1
Created August 13, 2019 13:16
Powershell script to control Windows hosted network and internet connection sharing
param(
[switch] $Enable,
[string] $Adapter = "Ethernet",
[string] $SSID = "YOUR_SSID",
[string] $Password = "YOUR_PASSWORD"
)
$adapter_v = "Microsoft Hosted Network Virtual Adapter"
regsvr32.exe /s hnetcfg.dll
$m = New-Object -ComObject HNetCfg.HNetShare
@StarGate01
StarGate01 / tasks.json
Created October 26, 2018 00:25
VSCode gfortran & scons problem matcher
{
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"type": "shell",
"command": "scons config=my_conf.py",
"problemMatcher": {
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": [
// ==UserScript==
// @name Get CRX
// @description Download CRX of extension from Chrome Web Store
// @match https://chrome.google.com/webstore/*
// @grant none
// @version 1.0
// ==/UserScript==
var getExtensionIdFromLocation = function ( location ) {
@StarGate01
StarGate01 / 00 - Migration Notice
Last active December 10, 2016 15:25
ocaml-vscode-windows
1. Uninstall any old Ocaml installation from
C:\Ocaml
or similar
2. Remove the system32/utop.bat workaround file as it is not needed anymore.
@StarGate01
StarGate01 / local_makefile
Last active April 17, 2016 16:39
Arduino Makefile for IDE 1.6.8
PROJECTNAME = blink
FQBN = arduino:avr:uno
UCMODEL = atmega328p
PROGPORT = COM7
PROTOCOL = arduino
SPEED = 115200
include ../makefile
@StarGate01
StarGate01 / checkenv.mak
Last active March 19, 2018 15:29
ATmega328p/8MHz w/ Arduino Notepad++ Makefile
ifndef PROJNAME
$(error PROJNAME is not set)
endif
ifndef UCMODEL
$(error UCMODEL is not set)
endif
ifndef UCCLKSPEED
$(error UCCLKSPEED is not set)