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
// ==UserScript==
// @name Naurok Bypass v2: Extras
// @description Companion userscript for naurok bypass; Contains unstable and unfinished features and enhancements for the Testing pages.
// @author griffi-gh
// @namespace griffi-gh
// @match https://naurok.com.ua/test/testing/*
// @grant none
// @grant GM_addStyle
// @version 0.3
// @run-at document-idle
@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
@griffi-gh
griffi-gh / 1_expand_bool.rs
Last active May 9, 2023 16:53
Use rutime `bool` variables in const generics;based on macro written by by Bruh#1794
/// based on macro written by by Bruh#1794
macro_rules! expand_bool {
(let $callback_var_name: ident: $($fn_name:ident ::)* <$($var_name:ident),+ $(,)?> => $callback: block) => {
expand_bool!([$($fn_name)::*] [$($var_name)+] [$($var_name)+] [()] [$callback_var_name] [$callback])
};
(
[$fn_name:path]
[$($all_names:ident)+]
[$_var_first:ident $($var_rest:ident)*]
// ==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
// ==UserScript==
// @name naurok bypass
// @description get answers to naurok quizes
// @namespace Violentmonkey Scripts
// @match https://naurok.com.ua/test/*.html
// @exclude-match https://naurok.com.ua/test/*/*
// @inject-into page
// @grant none
// @version 1.2
// @author griffi-gh
@griffi-gh
griffi-gh / frustum.rs
Last active January 28, 2023 20:42
Rust Frustum culling code (using glam)
// basically ported from c++
// - used as a reference:
// [ https://github.com/Beastwick18/gltest/blob/main/src/renderer/Frustum.cpp ]
// - original code:
// [ https://gist.github.com/podgorskiy/e698d18879588ada9014768e3e82a644 ]
// - which uses cube vs frustum intersection code from:
// [ http://iquilezles.org/www/articles/frustumcorrect/frustumcorrect.htm ]
// three layers of stolen code, yay!
use glam::{Vec3, Vec3A, vec3a, Vec4, vec4, Mat3A, Mat4};