Skip to content

Instantly share code, notes, and snippets.

@real-or-random
real-or-random / fw-fan-settings.service
Created June 19, 2024 22:49
Framework Fan Settings
[Unit]
Description=Sets fan parameters on Framework
# Try to avoid multiple ectool instances running at the same time
Before=fw-charge-limiter.service
[Service]
Type=oneshot
RemainAfterExit=true
@real-or-random
real-or-random / LICENSE.txt
Last active August 26, 2023 09:26
Framework Charge Limiter - Workaround for Dock Disconnects on Framework Laptops
Framework Charge Limiter - Workaround for Dock Disconnects on Framework Laptops
Written in 2023 by Tim Ruffing
To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along
with this software. If not, see
From dcc2606d510cc382fd2a9ab387ac99f2423d3973 Mon Sep 17 00:00:00 2001
From: Tim Ruffing <[email protected]>
Date: Fri, 25 Sep 2020 11:51:43 +0200
Subject: [PATCH] HACK: Warn for bug 95189
---
gcc/builtins.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gcc/builtins.c b/gcc/builtins.c
@real-or-random
real-or-random / powerlevel10k_timewarrior.zsh
Last active October 29, 2019 12:09
Simple timewarrior segment for powerlevel10k
function prompt_timewarrior() {
emulate -L zsh
setopt pipefail
(( $+commands[timew] )) || return
local line IFS
timew 2>/dev/null | read -r line || return
local tags=${line#Tracking }
[[ -n $tags && $tags != $line ]] || return
p10k segment -f 208 -i $'\uFA1A' -t $tags
}

Keybase proof

I hereby claim:

  • I am real-or-random on github.
  • I am timruffing (https://keybase.io/timruffing) on keybase.
  • I have a public key whose fingerprint is 5374 8A40 29AE 1B6A 56BB B164 A026 540B 4F26 687B

To claim this, I am signing this object: