Instantly share code, notes, and snippets.

Gavin Lloyd gavinhungry

View GitHub Profile

Thinkfan Configuration Notes

This are notes for configuration thinkfan for Fedora. This configuration procedure was followed on a Lenovo Thinkpad X1 Carbon (5th Gen) running Fedora 25.

Non standard (default) configuration was required for this machine as the default sensors are not available. Eg: /proc/acpi/ibm/thermal does not exist for this model.

An annoted configuration file has been included below. However, there is no guarentee that this will work as-is on every machine.


dnf -y install thinkfan
View chrome_flags.js
Open chrome://flags/
F12 open developer console, swtich to tab "Console"
Paste below codes
- input backup() to download flags backup file
- input restore() to select one backup to restore
function get_flags (callback) {
var old = window.returnExperimentalFeatures;
window.returnExperimentalFeatures = function (data) {
  1. Enable #enable-devtools-experiments flag in chrome://flags section.

  2. Open Chorme Devtools and check Settings > Experiments > Allow custom UI themes.

  3. Create the following four files in a dedicated folder.

    3.1. devtools.html

    <body><script src="devtools.js"></script></body>
View reclaimWindows10.ps1
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <>
# Modified by: alirobe <> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source:
# Tweaked Source:
# Tweak difference:
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
# $Id: PKGBUILD 213056 2014-05-18 13:44:18Z andyrtr $
# Maintainer: Jan de Groot <>
# Contributor: Tobias Powalowski <>
# Contributor: Thomas Bächler <>
# Contributor: Alexander Baldeck <>
pkgdesc="Synaptics driver for notebook touchpads"
View git-mv-with-history
# git-mv-with-history -- move/rename file or folder, with history.
# Moving a file in git doesn't track history, so the purpose of this
# utility is best explained from the kernel wiki:
# Git has a rename command git mv, but that is just for convenience.
# The effect is indistinguishable from removing the file and adding another
# with different name and the same content.
View gvoice.js
var voice = {
jquery: '//',
key_name: '_rnr_se',
key_value: function() {return jQuery('input[name="'+ voice.key_name +'"]').val()},
page: 1,
messages: [],
done: false,
init: function() {
var script = document.createElement('script'),
head = document.getElementsByTagName('head')[0];
curl -s | ruby -rubygems -e 'require "json"; JSON.load( { |repo| %x[git clone #{repo["ssh_url"]} ]}'