Skip to content

Instantly share code, notes, and snippets.

View thegu5's full-sized avatar
😐
i need more sleep

thegu5 thegu5

😐
i need more sleep
View GitHub Profile
@velzie
velzie / manifest-v2-chrome.md
Last active July 4, 2024 19:40
How to keep using adblockers on chrome and chromium

How to keep using adblockers on chrome and chromium

  1. google's manifest v3 has no analouge to the webRequestBlocking API, which is neccesary for (effective) adblockers to work
  2. starting in chrome version 127, the transition to mv3 will start cutting off the use of mv2 extensions alltogether
  3. this will inevitably piss of enterprises when their extensions don't work, so the ExtensionManifestV2Availability key was added and will presumably stay forever after enterprises complain enough

You can use this as a regular user, which will let you keep your mv2 extensions even after they're supposed to stop working

Linux

In a terminal, run:

[
"928350122843193385",
"1185047194261274665",
"956202276408688650",
"956104664821157918",
"1185047092478095443",
"1185046791826178099",
"1185047045413797898",
"928483283698851901",
"1185047444619284641",
@ABCxFF
ABCxFF / wasmfunc.polyfill.js
Created February 25, 2024 03:44
async WebAssembly.Function polyfill
// For Firefox or other browsers that don't provide WebAssembly.Function APIs,
// this polyfill, albeit async, can be used as a substitute.
//
// Using WASM, this polyfill is accepted by WebAssembly.Tables, and can be inserted
// into them without failure
if (!WebAssembly.Function) {
const vu32 = (x) => {
let out = [];
do {
let byte = x & 0x7F;

Guide for cross compiling Windows GD Mods on Linux

Requirements

  • clang & llvm (make sure you have clang-cl)
  • cmake (duh)
  • git

1. Setting up xwin

Install xwin, you can also just use one of the unknown-linux tarballs from the releases

@madkoding
madkoding / pair-dual-boot-bluetooth.md
Last active July 5, 2024 15:19
Pairing bluetooth devices in dual boot with Linux Ubuntu and Windows 10/11

Pairing Bluetooth Devices in Dual Boot with Linux Ubuntu and Windows 10/11

Introduction

This guide provides updated instructions for pairing Bluetooth devices (such as keyboards or mice) in a dual-boot environment with Linux Ubuntu and Windows 10/11, incorporating community feedback and suggestions.

Instructions

1. Pair in Linux First

  • Pair your Bluetooth device in Linux. This is crucial to ensure the LinkKey remains consistent.
  • Note: Do not re-pair the device in Linux after completing the pairing in Windows.