Skip to content

Instantly share code, notes, and snippets.

View kakra's full-sized avatar
🏠
Let's inject fun into Linux Gaming

Kai Krakow kakra

🏠
Let's inject fun into Linux Gaming
View GitHub Profile
GameSir G7 SE - Linux HID Descriptors
--- MODE: HID 1 (ID 3537:1082) ---
=== /sys/bus/hid/devices/0003:3537:1082.002F/report_descriptor ===
00000000: 05 01 09 05 a1 01 85 05 15 00 25 01 35 00 45 01 75 01 95 0f ..........%.5.E.u...
00000014: 05 09 19 01 29 0f 81 02 95 01 81 01 05 01 25 07 46 3b 01 75 ....).........%.F;.u
00000028: 04 95 01 65 14 09 39 81 42 65 00 95 01 81 01 26 ff 00 46 ff ...e..9.Be.....&..F.
0000003c: 00 09 30 09 31 09 32 09 35 75 08 95 04 81 02 05 02 15 00 26 ..0.1.2.5u.........&
00000050: ff 00 09 c5 09 c4 95 02 75 08 81 02 05 08 09 43 15 00 26 ff ........u......C..&.
@kakra
kakra / benchmark-read-policies.sh
Last active June 11, 2025 14:28
btrfs read policy benchmarks
#!/bin/bash
# --- Configuration ---
BTRFS_MOUNT_POINT="/mnt/btrfs-pool/benchmark" # Your Btrfs mount point
BTRFS_UUID="7fb2b91c-c484-4d82-86af-fb91239b89e4" # Your Btrfs FSID
SYSFS_POLICY_PATH="/sys/fs/btrfs/${BTRFS_UUID}/read_policy"
SYSFS_DEVINFO_PATH="/sys/fs/btrfs/${BTRFS_UUID}/devinfo"
# Fio Test File Configuration
FIO_TEST_FILE="${BTRFS_MOUNT_POINT}/fiotest.tmp"
@kakra
kakra / game.slice
Created July 18, 2021 10:00
Proton gamemode wrapper script
# /etc/systemd/user/game.slice.d/99-resources.conf
[Unit]
Description=Game Slice
[Slice]
CPUWeight=2000
IOWeight=400
#MemoryLow=16G
@kakra
kakra / git-superfixup.pl
Last active December 28, 2019 15:11 — forked from oktal3700/git-superfixup.pl
Perl script for automating the process of creating fixup! commits for use with git rebase -i --autosquash
#!/usr/bin/perl
# Scan unstaged changes in git tracked files, identify which commits they could
# be applied to as fixups, and automatically produce the appropriate "fixup!"
# commits for use with "git rebase -i --autosquash".
#
# Copyright (C) 2016, 2017 by Mat Sutcliffe
# This program is free software; you can redistribute it and/or modify it under
# the GNU General Public License as published by the Free Software Foundation;
# either version 2 of the License, or (at your option) any later version.
From 767943964b2e71c29db86dd6c6fd2863d1a05866 Mon Sep 17 00:00:00 2001
From: Con Kolivas <kernel@kolivas.org>
Date: Tue, 13 Nov 2018 17:18:04 +1100
Subject: [PATCH 01/16] MultiQueue Skiplist Scheduler version v0.180.1.
---
.../admin-guide/kernel-parameters.txt | 8 +
Documentation/scheduler/sched-BFS.txt | 351 +
Documentation/scheduler/sched-MuQSS.txt | 373 +
Documentation/sysctl/kernel.txt | 37 +

Keybase proof

I hereby claim:

  • I am kakra on github.
  • I am hurikhan77 (https://keybase.io/hurikhan77) on keybase.
  • I have a public key ASBMoPfqYDyZpMPKglwE58l8Wa8ocmIXOD9WwLfpHaGmFQo

To claim this, I am signing this object:

#!/bin/bash
/usr/bin/kernel-install remove $1 $2
/usr/bin/kernel-install add $1 $2
#!/bin/bash -e
COMMIT=${1:-HEAD}
VERSIONS=$(git tag --list --sort -v:refname --no-contains ${COMMIT})
SINCE=$(head -1 <<<${VERSIONS})
SINCE=${SINCE:-$(git rev-list --max-parents=0 HEAD)}
cat <<-SUBJECT
Changes since ${SINCE} up to ${COMMIT}
@kakra
kakra / 20-natural-scrolling.conf
Created April 21, 2017 17:00
xorg.conf.d/20-natural-scrolling.conf
Section "InputClass"
Identifier "Enable natural scrolling by default"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
MatchDriver "libinput"
Option "NaturalScrolling" "on"
EndSection
@kakra
kakra / disable-overlay-scrollbars.css
Created November 14, 2016 21:13
Chrome Stylish extension: useful user styles
@-moz-document domain("autotask.net") {
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
visibility: hidden;
}