Skip to content

Instantly share code, notes, and snippets.

@firetech
firetech / bbswitch.diff
Created November 4, 2015 18:42
bbswitch hack to turn off dGPU before suspend instead (for Clevo laptops where the dGPU remains on and overheating during suspend)
--- bbswitch-0.8.orig/bbswitch.c
+++ bbswitch-0.8/bbswitch.c
@@ -238,10 +238,15 @@ static int is_card_disabled(void) {
return !~cfg_word;
}
+static void bbswitch_off_force(void);
static void bbswitch_off(void) {
if (is_card_disabled())
return;
@firetech
firetech / bot-logic.js
Last active July 19, 2021 12:19
Hermatrix Asteroid Bot Logic
/*
* The "brains" of my bot for playing the Asteroid game that was part of the
* hermatrix.net ARG in July 2021.
*
* Copyright 2021 Joakim "firetech" Tufvegren
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,