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
@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;
}
@kakra
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
# 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
kakra / usb-backup.service
Last active April 2, 2016 20:15
Simple script for creating space-efficient backups to btrfs using rsync and snapshots
# 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 <hurikhan77@gmail.com>
# License: GPL3
[Unit]
Description=USB Backup Service
[Service]