Skip to content

Instantly share code, notes, and snippets.

View James-E-A's full-sized avatar

James E. A. James-E-A

View GitHub Profile
@James-E-A
James-E-A / 10-LVDS-gamma.conf
Last active June 21, 2018 19:26
Fix laptop blue hue on Linux
# /etc/X11/xorg.conf.d/10-LVDS-gamma.conf
# Works on Debian and Ubuntu for at least the last 5 years
Section "Monitor"
Identifier "LVDS"
# Identifier "eDP-1"
Gamma 1.15 0.8 0.78 #tune to taste or accuracy
EndSection
@x42005e1f
x42005e1f / glock.py
Last active August 14, 2025 16:16
A group-level lock (async-aware & thread-aware)
#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2025 Ilya Egorov <[email protected]>
# SPDX-License-Identifier: ISC
from __future__ import annotations
from collections import OrderedDict
from operator import methodcaller
from typing import TYPE_CHECKING