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 / galaxy-watch-app-dump.nu
Created September 9, 2024 13:35
galaxy-watch-app-dump.nu
#!/usr/bin/env nu
let sdb = $"($env.HOME)/.tizen-studio/tools/sdb"
def sdb-is-connected [] {
(^$sdb shell whoami) | str contains "owner"
}
def sdb-list-apps [] {
(^$sdb shell ls /opt/usr/apps) | lines
@griffi-gh
griffi-gh / theme-wsb-dark.user.css
Last active October 10, 2024 18:15
wsb-dark.css
/* ==UserStyle==
@name WSB Merito Extranet/Moodle Dark Theme
@author griffi-gh
@version 10.0.3
@license MIT
@namespace griffi-gh-wsb
==/UserStyle== */
@-moz-document domain("portal.wsb.pl") {
@layer {

$argon2id$v=19$m=512,t=256,p=1$nCI3CxUsIUTBWuuYcY4vVA$SD58MTiKJVeV0XUulg0F1u0T0N5ugzbFQETuqSdrNkQ

// ==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 October 12, 2024 00:26
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};