Skip to content

Instantly share code, notes, and snippets.

@festival4799
festival4799 / 50-x-resize.rules
Created December 28, 2023 12:02
udev rule to dynamilcally change screen resolution of a libvirt guest with spice display
# /etc/udev/rules.d/50-x-resize.rules
ACTION=="change",KERNEL=="card0", SUBSYSTEM=="drm", RUN+="/usr/local/bin/x-resize"
@festival4799
festival4799 / git-identities.sh
Created January 28, 2023 14:56
Multiple identities in gitconfig with alias
#!/bin/bash
# Set the different identities used in your global '~/.gitconfig' file
git config --global user.gitlab.name "Your Name"
git config --global user.gitlab.email "gitlab@example.com"
git config --global user.github.name "Your Name"
git config --global user.github.email "github@example.com"
git config --global user.identity3.name "Your Name"
git config --global user.identity3.email "identity3@example.com"