Skip to content

Instantly share code, notes, and snippets.

View griffi-gh's full-sized avatar
😳
:3

griffi-gh griffi-gh

😳
:3
View GitHub Profile
@griffi-gh
griffi-gh / theme-wsb-dark.user.css
Last active March 25, 2025 10:40
wsb-dark.css
/* ==UserStyle==
@name WSB Merito Extranet/Moodle Dark Theme
@author griffi-gh
@version 11.2.1
@license MIT
@namespace griffi-gh-wsb
@var color moodleSheetBg "Moodle Sheet Background" #131213
@var color moodleSheetFg "Moodle Sheet Foreground" #201e20
@var color moodleSheetFgNested "Moodle Nested Sheet Foreground" #2b2b2b
@var color moodleDarkActive "Moodle Dark Active" #333
@griffi-gh
griffi-gh / filters.txt
Last active April 24, 2025 11:29
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
@kassane
kassane / std_log.md
Last active April 14, 2025 11:21 — forked from leecannon/std_log.md
Quick overview of Zig's `std.log`

A simple overview of Zig's std.log for Zig v0.12.0 or higher

Logging functionality that supports:

  • If a log message should be printed is determined at comptime, meaning zero overhead for unprinted messages (so just leave the code peppered with debug logs, but when it makes sense scope them; so downstream users can filter them out)
  • Scoped log messages
  • Different log levels per scope
  • Overrideable log output (write to file, database, etc.)
  • All the standard std.fmt formatting magic

Basic Usage:

@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 = {}
@d4em0n
d4em0n / exploit.js
Created November 8, 2020 14:51
quickjs exploit
var buf = new ArrayBuffer(8);
var f64_buf = new Float64Array(buf);
var u64_buf = new Uint32Array(buf);
function ftoi(val) {
f64_buf[0] = val;
return BigInt(u64_buf[0]) + (BigInt(u64_buf[1]) << 32n);
}
function itof(val) {
@gamunu
gamunu / firefox-quantum-telemetry
Last active March 2, 2025 08:34
Disabling Firefox Quantum telemetry
I would like to recommend checking out https://librewolf.net/ instead of Firefox due to recent controversies. Give it a go.
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
{ config, lib, pkgs, fetchPypi, ... }:
let
py = pkgs.python2;
pypkgs = py.pkgs;
log = pkgs.writeScript "log.sh" ''
#!${pkgs.runtimeShell}
set -euo pipefail
@digitalhitler
digitalhitler / smali-cheatsheet.txt
Created September 4, 2018 21:20
Smali docs на русском
Небольшая помощь в Smali
(Будет дополняться)
#
Общая информация
#
Smali
Виды(Types)
Байт-код Dalvik имеет два основных класса типов, примитивные типы и ссылочные типы. Типы ссылок - это объекты и массивы, все остальное является примитивным.
@ids1024
ids1024 / Makefile
Last active February 5, 2025 13:43
Samsung Gear (Tizen) Rust Makefile
NAME=hue
VERSION = 1.0.0
TIZEN_STUDIO=/home/ian/Devel/tizen-studio
TIZEN_VERSION=3.0
ROOTSTRAP=wearable-3.0-device.core
TRIPLE=arm-linux-gnueabi
RUST_TRIPLE=arm-unknown-linux-gnueabi
SECURITY_PROFILE=ids1024
PKGNAME = com.ids1024.$(NAME)
TOOLCHAIN=gcc-4.9