Skip to content

Instantly share code, notes, and snippets.

echo "set timeout=0" | sudo tee -a /etc/grub.d/40_custom
sudo update-grub2
printf "bind -s 'set completion-ignore-case on'\n" >> ~/.bashrc
printf "alias sd=\"cd \\\$(find * -type d | fzf)\"\n\n" >> ~/.bashrc
source ~/.bashrc
gsettings set org.gnome.mutter center-new-windows true
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha256"
"fmt"
"io"
"os"
@aditya-r-m
aditya-r-m / crgb.cc
Last active July 13, 2024 15:11
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>