Skip to content

Instantly share code, notes, and snippets.

View rafaelrc7's full-sized avatar
🔥

Rafael Carvalho rafaelrc7

🔥
View GitHub Profile
@rafaelrc7
rafaelrc7 / FullRGB.patch
Last active February 16, 2025 04:46 — forked from darksylinc/FullRGB_6.10.13.patch
Rebased to Linux 6.13
From 5e9abc08e7873f69ab7fdf9ca3731a2de4733936 Mon Sep 17 00:00:00 2001
From: rafaelrc7 <[email protected]>
Date: Sat, 15 Feb 2025 01:45:18 -0300
Subject: [PATCH] [amdgpu] Add "pixel_encoding" to switch between RGB &
YUV color modes
Usage:
- X11: xrandr --output <output name> --set "pixel encoding" <encoding>
- Wayland: proptest -M amdgpu -D <card path> <connector ID> connector
<pixel encoding ID> <encoding (ID)>

Keybase proof

I hereby claim:

  • I am rafaelrc7 on github.
  • I am rafaelrc (https://keybase.io/rafaelrc) on keybase.
  • I have a public key ASCiHS2gHG9NTIMmomOqmYRQwLplo2iZdWS2YTLjK-aYVwo

To claim this, I am signing this object:

@rafaelrc7
rafaelrc7 / Makefile
Last active February 18, 2025 03:13
Generic Makefile for c/cxx/asm
######################### Preamble ###########################################
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
.SECONDEXPANSION:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
MAKEFLAGS += -j$(shell nproc)
@rafaelrc7
rafaelrc7 / brainfuck.s
Created November 10, 2023 18:54
Brainfuck x86-64 Linux Assembly Interpreter
/* How to build
* gcc -nostdlib brainfuck.s
* brainfuck source should be in a file called "code.bf"
*/
.set alloc_step, 512
.section .rodata
source_path: .string "code.bf"