Skip to content

Instantly share code, notes, and snippets.

View griffi-gh's full-sized avatar
😳
:flushеd:

griffi-gh griffi-gh

😳
:flushеd:
View GitHub Profile
@griffi-gh
griffi-gh / filters.txt
Last active July 4, 2024 15:56
Misc. uBlock filters
! https://gist.githubusercontent.com/griffi-gh/31dc0d175b5cbd026375ef32743e3e8a/raw/filters.txt
!
! I just dump the contents my personal uBlock "My filters" tab here every now and then
! Some filters are pretty opinionated or block ads on obscure websites
!
! ENABLE GENERIC PROCEDURAL FILTERS !
! I use them heavily
! 2021-06-09 https://fastalts.net
||cdn.thealtening.com/banner_thealtening.gif$image
// ==UserScript==
// @name Naurok Bypass v2
// @author griffi-gh
// @namespace griffi-gh
// @description Fetches answers to *all* Naurok quizes
// @version 8.1
// @license MIT
// @match *://naurok.com.ua/test/*.html
// @grant GM_setValue
// @grant GM_getValue
@psolyca
psolyca / Huawei_protocol.lua
Created January 10, 2022 22:31
Wireshark dissector for Huawei band protocol
----------------------------------------
--- Definitions
----------------------------------------
--- Huawei protocol used in Wireshark to dissect packets
--- @class Proto
local huawei_proto = {}
--- @class hpFields
local hpFields = {}
@gamunu
gamunu / firefox-quantum-telemetry
Last active September 26, 2023 13:56
Disabling Firefox Quantum telemetry
Disabling telemetry takes a little more work but can be accomplished in about five minutes. Type "about:config" in the address bar, and you will be notified that you could void your warranty (Firefox has a warranty?). Click on "I accept the risk." Type in "telemetry" in the search bar to see the results. Only some can be changed, and according to Mozilla, they are:
browser.newtabpage.activity-stream.feeds.telemetry
browser.newtabpage.activity-stream.telemetry
browser.ping-centre.telemetry
toolkit.telemetry.archive.enabled
toolkit.telemetry.bhrPing.enabled
toolkit.telemetry.enabled
toolkit.telemetry.firstShutdownPing.enabled
toolkit.telemetry.hybridContent.enabled
@digitalhitler
digitalhitler / smali-cheatsheet.txt
Created September 4, 2018 21:20
Smali docs на русском
Небольшая помощь в Smali
(Будет дополняться)
#
Общая информация
#
Smali
Виды(Types)
Байт-код Dalvik имеет два основных класса типов, примитивные типы и ссылочные типы. Типы ссылок - это объекты и массивы, все остальное является примитивным.
@hediet
hediet / main.md
Last active March 11, 2024 15:05
Proof that TypeScript's Type System is Turing Complete
type StringBool = "true"|"false";


interface AnyNumber { prev?: any, isZero: StringBool };
interface PositiveNumber { prev: any, isZero: "false" };

type IsZero<TNumber extends AnyNumber> = TNumber["isZero"];
type Next<TNumber extends AnyNumber> = { prev: TNumber, isZero: "false" };
type Prev<TNumber extends PositiveNumber> = TNumber["prev"];
@kaeza
kaeza / bitty.lua
Last active November 18, 2021 01:38
Bitty - Implementation of bitwise operators in pure Lua
if false then -- For LuaDoc
---
-- Pure Lua implementation of bitwise operations.
-- Not suitable for time critical code. Intended as fallback
-- for cases where a native implementation is unavailable.
-- Further optimization may be possible.
-- @version 0.1
-- @author kaeza <https://github.com/kaeza>
module "bitty"