Skip to content

Instantly share code, notes, and snippets.

# Install stress-ng via app center or apt
stress-ng --matrix 0 --vm 1 --vm-bytes 90% --vm-method all --verify --timeout 4h
# Check temps with:
paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) | column -s $'\t' -t | sed 's/\(.\)..$/.\1°C/'
# Put in shell script, call with watch
@jldeon
jldeon / triangle.c
Created May 2, 2013 20:36
Raspberry Pi Videocube modified files for demonstrating the flipping when proprietary tunnels are enabled.
/*
Copyright (c) 2012, Broadcom Europe Ltd
Copyright (c) 2012, OtherCrashOverride
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright