Skip to content

Instantly share code, notes, and snippets.

View yoyojacky's full-sized avatar
🍉
Life is short, why am i coding?

yoyojacky yoyojacky

🍉
Life is short, why am i coding?
View GitHub Profile
@geerlingguy
geerlingguy / pi-cpu-stress.sh
Last active March 24, 2025 19:11
Raspberry Pi CPU temperature and throttling test script
#!/bin/bash
# Raspberry Pi stress CPU temperature measurement script.
#
# Download this script (e.g. with wget) and give it execute permissions (chmod +x).
# Then run it with ./pi-cpu-stress.sh
#
# NOTE: In recent years, I've switched to using s-tui. See:
# https://github.com/amanusk/s-tui?tab=readme-ov-file#options
# Variables.
@flaneur2020
flaneur2020 / Makefile
Created December 9, 2012 03:22
a Makefile sample for kernel module
MOD = sample
KPATH :=/lib/modules/$(shell uname -r)/build
PWD :=$(shell pwd)
obj-m = $(MOD).o
all:
$(MAKE) -C $(KPATH) M=$(PWD) modules
clean:
$(MAKE) -C $(KPATH) M=$(PWD) clean