Skip to content

Instantly share code, notes, and snippets.

View ericjohnson97's full-sized avatar

Eric Johnson ericjohnson97

View GitHub Profile
@vzaliva
vzaliva / ThinkLight
Created May 22, 2016 14:27
This script controll keyboard backlight on IBM ThinkPad X-series
#!/bin/bash
# Vadim Zaliva [email protected]
# based on https://gist.github.com/hadess/6847281
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
@nathanjackson
nathanjackson / device_query.c
Last active March 8, 2025 22:32
OpenCL Device Query
#include <stdio.h>
#include <stdlib.h>
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#else
#include <CL/cl.h>
#endif
int main() {