Skip to content

Instantly share code, notes, and snippets.

@aditya-r-m
aditya-r-m / manifest.json
Created May 25, 2025 15:40
Small Chrome extension to add fonts to webpages, useful for Chromebook native browser applications where installing system-wide fonts is not possible. The sample code can be used to add ligatures to Google colab on ChromeOS using fonts such as JetBrains Mono & Fira Code.
{
"name": "Font Loader",
"description": "Adds CSS fonts to webpage",
"version": "1.0",
"manifest_version": 3,
"content_scripts": [
{
"js": ["script.js"],
"matches": ["https://colab.research.google.com/*"]
}
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha256"
"fmt"
"io"
"os"
@aditya-r-m
aditya-r-m / crgb.cc
Last active June 10, 2025 16:08
Custom Trident Z DRAM RGB Turndown
// Pieces extracted & trimmed from https://gitlab.com/CalcProgrammer1/OpenRGB
// Basic usage : g++ crgb.cc -o ledoff && ./ledoff
// For turning off RAM LEDs at startup : compile in root home directory & add "@reboot /root/ledoff" to "sudo crontab -e"
#include <cstring>
#include <iostream>
#include <linux/i2c-dev.h>
#include <linux/i2c.h>
#include <sys/ioctl.h>