Skip to content

Instantly share code, notes, and snippets.

Let's inject fun into Linux Gaming

Kai Krakow kakra

Let's inject fun into Linux Gaming
View GitHub Profile
kakra / game.slice
Created July 18, 2021 10:00
Proton gamemode wrapper script
View game.slice
# /etc/systemd/user/game.slice.d/99-resources.conf
Description=Game Slice
kakra /
Last active December 28, 2019 15:11 — forked from oktal3700/
Perl script for automating the process of creating fixup! commits for use with git rebase -i --autosquash
# 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.
View 0001-MultiQueue-Skiplist-Scheduler-version-v0.180.1.patch
From 767943964b2e71c29db86dd6c6fd2863d1a05866 Mon Sep 17 00:00:00 2001
From: Con Kolivas <>
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 ( on keybase.
  • I have a public key ASBMoPfqYDyZpMPKglwE58l8Wa8ocmIXOD9WwLfpHaGmFQo

To claim this, I am signing this object:

View zz-systemd-boot
/usr/bin/kernel-install remove $1 $2
/usr/bin/kernel-install add $1 $2
View git-changelog
#!/bin/bash -e
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 / 20-natural-scrolling.conf
Created April 21, 2017 17:00
View 20-natural-scrolling.conf
Section "InputClass"
Identifier "Enable natural scrolling by default"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
MatchDriver "libinput"
Option "NaturalScrolling" "on"
kakra / disable-overlay-scrollbars.css
Created November 14, 2016 21:13
Chrome Stylish extension: useful user styles
View disable-overlay-scrollbars.css
@-moz-document domain("") {
::-webkit-scrollbar {
width: 8px;
height: 8px;
::-webkit-scrollbar-track {
visibility: hidden;
kakra / helper_proxy.rb
Created May 21, 2014 12:23
Snippet of a Rails helper proxy to make helpers available from anywhere without polluting namespace
View helper_proxy.rb
# use helpers from models or any part of your app (you shouldn't do that, however...)
# ... put in config/initializers
# class MyModel < ActiveRecord::Base
# def some_attribute
# HelperProxy.instance.number_format some_value, precision: 4
# end
# end
class HelperProxy
kakra / usb-backup.service
Last active April 2, 2016 20:15
Simple script for creating space-efficient backups to btrfs using rsync and snapshots
View usb-backup.service
# Call the backup script with systemd, and since it is a background service, treat it like that by lowering IO and CPU priority
# so it will work in the background without disturbing your normal workflow.
# Author: Kai Krakow <>
# License: GPL3
Description=USB Backup Service