Skip to content

Instantly share code, notes, and snippets.

@alx3apps
alx3apps / tp-fancontrol-basic.sh
Created June 6, 2012 19:52
lenovo thinkpad cooler control script
#!/bin/bash
# This script dynamically controls fan speed on some ThinkPad models
# according to user-defined temperature thresholds. It implements its
# own decision algorithm, overriding the ThinkPad embedded
# controller. It also implements a workaround for the fan noise pulse
# experienced every few seconds on some ThinkPads.
#
# The script requires the ibm_acpi patch at
# http://thinkwiki.org/wiki/Patch_for_controlling_fan_speed
@alx3apps
alx3apps / gist:2668020
Created May 12, 2012 18:22
Installing FRUA unofficial patch 1.3c

FRUA unofficial 1.3c patch

In addition to great Jaesun's FRUA guide, unofficial patch 1.3 (among other changes) removes copy protection that is enabled in 1.2 in some modules (e.g. Harri Polsa's "Jade" ones).

  • get 1.3c patch from rosedragon archive
  • copy diff.tbl into tutorial.dsn in your FRUA directory
  • start UAShell and apply tutorial.dsn
  • close and exit UAShell
  • delete the default.dsn directory
@alx3apps
alx3apps / gemrb_android.patch
Created March 11, 2012 11:57
Android patch for GemRB (http://www.gemrb.org/), target GemRB version specified in VERSION_GEMRB
diff --git a/gemrb/GemRB.cpp b/gemrb/GemRB.cpp
index 8e240f8..ae7098f 100644
--- a/gemrb/GemRB.cpp
+++ b/gemrb/GemRB.cpp
@@ -39,6 +39,8 @@
#if SDL_COMPILEDVERSION < SDL_VERSIONNUM(1,3,0)
#include "Audio.h"
+using namespace GemRB;
+