Skip to content

Instantly share code, notes, and snippets.

View particleflux's full-sized avatar
👉
curl http.machine.codes/418

Stefan Linke particleflux

👉
curl http.machine.codes/418
View GitHub Profile
@particleflux
particleflux / rofi-1.7.5_libxkbcommon-1.8.patch
Created April 4, 2025 09:27
rofi-1.7.5 + libxkbcommon-1.8 key binding patch
diff '--color=auto' -ur a/subprojects/libnkutils/src/bindings.c b/subprojects/libnkutils/src/bindings.c
--- a/subprojects/libnkutils/src/bindings.c 2022-08-09 15:41:51.000000000 +0200
+++ b/subprojects/libnkutils/src/bindings.c 2025-04-04 11:19:46.749095192 +0200
@@ -147,9 +147,8 @@
NK_BINDINGS_MODIFIER_CONTROL,
NK_BINDINGS_MODIFIER_ALT,
NK_BINDINGS_MODIFIER_SUPER,
- NK_BINDINGS_MODIFIER_META,
NK_BINDINGS_MODIFIER_HYPER,
-#define NK_BINDINGS_NUM_MODIFIERS 6
@particleflux
particleflux / prepare-commit-msg
Created January 25, 2021 21:31
Check git user config on first local commit
#!/usr/bin/env bash
verified=$(git config --type=bool hooks.userverified)
# grab input
exec < /dev/tty
exec 1>&2
if [[ "$verified" != "true" ]]; then
echo "Checking committer info..."
@particleflux
particleflux / Route53 Changes filter
Created February 14, 2019 10:46
CloudTrail Route53 Changes filter for creating an alarm
{
$.eventSource = "route53.amazonaws.com"
&& (
($.eventName = Create*)
|| ($.eventName = Delete*)
|| ($.eventName = Update*)
|| ($.eventName = Disable*)
|| ($.eventName = Enable*)
|| ($.eventName = RegisterDomain)
|| ($.eventName = TransferDomain)