Skip to content

Instantly share code, notes, and snippets.

get lspci working:
/etc/default/grub:
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
#HK https://www.linuxquestions.org/questions/slackware-14/fundamental-issues-with-current-on-new-laptop-4175624289/
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=! acpi_osi=\"Windows 2009\""
run:
@hinxx
hinxx / stackclean.user.js
Last active October 18, 2021 12:55
Stackoverflow cleanup with tampermonkey
// ==UserScript==
// @name Stackoverflow cleanup
// @description Remove the right sidebar, left sidebar, post form, footer, cookie consent. Based on https://greasyfork.org/users/293891.
// @version 1
// @grant none
// @include http*://stackoverflow.com/questions/*
// @include http*://serverfault.com/questions/*
// @include http*://superuser.com/questions/*
// @include http*://stackapps.com/questions/*
// @include http*://meta.stackoverflow.com/questions/*
@hinxx
hinxx / Remove twitter Promoted.user.js
Last active February 13, 2022 12:07
Remove twitter Promoted.user
// ==UserScript==
// @name Remove twitter Promoted
// @namespace Violentmonkey Scripts
// @match https://twitter.com/*
// @grant none
// @version 1.0
// @author hinxx
// @description Removes the Promoted tweets from twitter timeline
// ==/UserScript==
// ==UserScript==
// @name Stackoverflow cleanup
// @description Remove the right sidebar, left sidebar, post form, footer, cookie consent. Based on https://greasyfork.org/users/293891.
// @version 1
// @grant none
// @include http*://stackoverflow.com/questions/*
// @include http*://serverfault.com/questions/*
// @include http*://superuser.com/questions/*
// @include http*://stackapps.com/questions/*
// @include http*://meta.stackoverflow.com/questions/*
@hinxx
hinxx / gist:3b4b55228724fa99650730d41f0c03fe
Last active April 5, 2022 15:11
Firefox extension interface to remove active logins
diff --git a/browser/components/extensions/ExtensionBrowsingData.jsm b/browser/components/extensions/ExtensionBrowsingData.jsm
--- a/browser/components/extensions/ExtensionBrowsingData.jsm
+++ b/browser/components/extensions/ExtensionBrowsingData.jsm
@@ -46,7 +46,10 @@ class BrowsingDataDelegate {
const PREF_DOMAIN = "privacy.cpd.";
// The following prefs are the only ones in Firefox that match corresponding
// values used by Chrome when rerturning settings.
- const PREF_LIST = ["cache", "cookies", "history", "formdata", "downloads"];
+ // HK
+ //const PREF_LIST = ["cache", "cookies", "history", "formdata", "downloads"];