Skip to content

Instantly share code, notes, and snippets.

/*
CUDA perfboost bypass, distributed under MIT License
-- @Ristovski
Each CUDA session is boosted to a fixed clock even when no real compute is being done,
this in turn causes the GPU to run hotter, sometimes at considerably higher power.
This preloadable library bypasses that by nuking the NV2080_CTRL_PERF_BOOST ioctl.
Mainly useful for mpv/other video players that utilize hardware video decode (nvdec),
as unlike on Windows, nvdec on linux utilizes CUDA for nvdec<->OpenGL/Vulkan interop.
@pallaswept
pallaswept / spi_recorder.ino
Created April 14, 2024 06:10 — forked from wareya/spi_recorder.ino
long SPI message recorder - rasberry pi pico (rp2040), arduino IDE .ino file (C++)
// wiring example for ripping a PMW3360 SROM: https://i.imgur.com/EspAlvz.jpeg
// set the board to 240mhz or higher for best results (WARNING: higher than 240mhz only works with USB if you overvolt the MCU)
// this implements reading SPI mode 3. if you want a different mode, you need to edit these two lines:
// uint32_t clockval = (1 << pin_clock);
// if (newclock && !clockval && buff_i < buffsize)
#include <pico/stdlib.h>
#define buffsize 50000