Skip to content

Instantly share code, notes, and snippets.

View mralfarrakhan's full-sized avatar

Rafky Alfarrakhan mralfarrakhan

View GitHub Profile
@mralfarrakhan
mralfarrakhan / list.h
Created September 16, 2023 05:02
Compile time linked list in C++14
#pragma once
#include <type_traits>
#ifndef DEBUGM
namespace comptime {
namespace List {
#endif
// List variant for tail end.
struct Nothing {};
@mralfarrakhan
mralfarrakhan / how_to_build_FFMPEG.txt
Created December 5, 2023 16:09
Build portable FFMPEG with AV1 (libsvtav1/libdav1d) and/or VVC (libvvenc/libvvdec) for Windows with MinGW64 (MSYS2)
Prerequisites:
* MSYS2 with MinGW64 environment.
* build tools: `pacman -S mingw-w64-x86_64-make mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc mingw-w64-x86_64-winpthreads-git `
AV1 supports
* libsvtav1 (encoder): `pacman -S mingw-w64-x86_64-svt-av1`
* libdav1d (decoder): `pacman -S mingw-w64-x86_64-dav1d`
VVC supports
* libvvenc (encoder):
@mralfarrakhan
mralfarrakhan / remove_bad_marks_siakng.js
Created April 8, 2025 04:38
Got those stinky read marks in your SIAKNG staining your transcript? worry not! run this on main/Academic/HistoryByTerm via console to hide those pesky marks!
(() => {
const rows = document.querySelectorAll("table tr.alt, table tr.x");
let i = 1;
for (k of rows) {
const data = k.querySelectorAll("td");
if (getComputedStyle(data[8]).color !== 'rgb(17, 17, 17)') {
k.hidden = 'true';
} else {
data[0].innerHTML = `${i}.`;
i += 1;