Skip to content

Instantly share code, notes, and snippets.

/*
This is an example of how simple driving a Neopixel can be
This code is optimized for understandability and changability rather than raw speed
More info at http://wp.josh.com/2014/05/11/ws2812-neopixels-made-easy/
*/
// Change this to be at least as long as your pixel string (too long will work fine, just be a little slower)
#define PIXELS 46 // Number of pixels in the string
#!/bin/bash
dl_and_install_build_prereq() {
# Prerequisites: https://openwrt.org/docs/guide-developer/quickstart-build-images
# Download and install prerequisites for compiling firmware
sudo apt-get -y update && sudo apt-get -y upgrade
sudo apt -y install subversion g++ zlib1g-dev build-essential git python time
sudo apt -y install libncurses5-dev gawk gettext unzip file libssl-dev wget
sudo apt -y install libelf-dev ecj fastjar java-propose-classpath
@markbirss
markbirss / skylake-tuning-linux.md
Created December 22, 2018 19:46 — forked from Brainiarc7/skylake-tuning-linux.md
This gist will show you how to tune your Intel-based Skylake, Kabylake and beyond Integrated Graphics Core for performance and reliability through GuC and HuC firmware usage on Linux.

Tuning Intel Skylake and beyond for optimal performance and feature level support on Linux:

Note that on Skylake, Kabylake (and the now cancelled "Broxton") SKUs, functionality such as power saving, GPU scheduling and HDMI audio have been moved onto binary-only firmware, and as such, the GuC and the HuC blobs must be loaded at run-time to access this functionality.

Enabling GuC and HuC on Skylake and above requires a few extra parameters be passed to the kernel before boot.

Instructions provided for both Fedora and Ubuntu (including Debian):

Note that the firmware for these GPUs is often packaged by your distributor, and as such, you can confirm the firmware blob's availability by running: