Skip to content

Instantly share code, notes, and snippets.

View Binary-Eater's full-sized avatar

Rahul Rameshbabu Binary-Eater

View GitHub Profile
@Binary-Eater
Binary-Eater / plasma-nm-cmake.sh
Created February 12, 2024 05:21
plasma-nm cmake flow
cmake ../ -DCMAKE_FIND_ROOT_PATH=~/kde/ -DCMAKE_INSTALL_PREFIX=/usr [-DDISABLE_MODEMMANAGER_SUPPORT=true]
@Binary-Eater
Binary-Eater / config-rust-aarch64
Last active October 6, 2024 21:43
rust-for-linux aarch64 command scratch
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 6.11.0-rc4 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="aarch64-unknown-linux-gnu-gcc (GCC) 13.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=130200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24100
@Binary-Eater
Binary-Eater / ftrace-hid-nvidia-shield.sh
Created November 4, 2024 05:30
A hid-nvidia-shield ftrace demo
# Initial setup
sudo su -
mount -t tracefs nodev /sys/kernel/tracing
cat /sys/kernel/tracing/available_tracers
# Function tracer
echo function > /sys/kernel/tracing/current_tracer
echo 0 > /sys/kernel/tracing/tracing_on
echo > /sys/kernel/tracing/trace
@Binary-Eater
Binary-Eater / ddcmd-hid-nvidia-shield.sh
Created November 4, 2024 07:04
A hid-nvidia-shield dynamic debug demo
sudo su -
less /proc/dynamic_debug/control
alias ddcmd='echo $* > /proc/dynamic_debug/control'
ddcmd '-p; module hid_nvidia_shield func * +p'
# Show dmesg/play around with the controller
# Discuss various dynamic debug modifiers
[ 60.178529] joy_bonnet_i2c: Firmware adafruit,joy-bonnet from open_firmware_table.
[ 60.178556] joy_bonnet_i2c: Id joy-bonnet-rpi-hat from id_table.
@Binary-Eater
Binary-Eater / .gdbinit
Last active November 17, 2024 03:39
WA2 gdb debug session
set follow-fork-mode child
set substitute-path ../src-wine /home/binary-eater/Documents/Proton/wine
set substitute-path ../src-dxvk /home/binary-eater/Documents/Proton/dxvk
@Binary-Eater
Binary-Eater / macro-backtrace.sh
Created March 3, 2025 02:48
Rust kernel compile invokes
make -j $(nproc) KRUSTFLAGS='-Z macro-backtrace' bzImage modules
@Binary-Eater
Binary-Eater / ubuntu_rust_for_linux_setup.txt
Last active May 5, 2025 01:51
Non-NixOS Rust for Linux setup experience
new-user@pop-os:~/Documents/linux$ make rustavailable
***
*** Rust bindings generator 'bindgen' could not be found.
***
***
*** Please see Documentation/rust/quick-start.rst for details
*** on how to set up the Rust support.
***
make[1]: *** [/home/new-user/Documents/linux/Makefile:1798: rustavailable] Error 1
make: *** [Makefile:251: __sub-make] Error 2