Skip to content

Instantly share code, notes, and snippets.

@aditya-r-m
aditya-r-m / crgb.cc
Last active October 30, 2024 01:15
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>
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha256"
"fmt"
"io"
"os"
PS1='\[\033[01;38;5;4m\]\W \[\033[01;38;5;6m\]: \[\033[00m\]'
bind -s 'set completion-ignore-case on'
alias tx='tmux new-session \; set -s escape-time 0 \; split-window -h -p 63 \; attach'
alias sd='cd $(find * -type d | fzf)'
alias tx='tmux new-session \; set -s escape-time 0 \; split-window -h -p 63 \; attach'
alias gs='git status'
alias gd='git diff --word-diff'
alias ga='git add -A'
alias gc='git commit'