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
#!/bin/bash
/usr/bin/kernel-install remove $1 $2
/usr/bin/kernel-install add $1 $2

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:

From 767943964b2e71c29db86dd6c6fd2863d1a05866 Mon Sep 17 00:00:00 2001
From: Con Kolivas <[email protected]>
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 +
@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.
@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 / benchmark-read-policies.sh
Last active May 9, 2025 14:43
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"