Skip to content

Instantly share code, notes, and snippets.

View omniwired's full-sized avatar
๐Ÿš€
Shipping

OmniWired omniwired

๐Ÿš€
Shipping
View GitHub Profile
@omniwired
omniwired / gist:6016298
Created July 16, 2013 23:47
Sublime settings
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"default_line_ending": "unix",
"font_face": "Ubuntu Mono",
"font_options":
[
"subpixel_antialias"
],
"font_size": 18.0,
"highlight_line": true,
@omniwired
omniwired / Set GPU profile on ATI card based on temperature
Last active December 19, 2015 08:09
Changes GPU profile based on temperature also set CPU on powersave if it's too hot. keywords: amd, ati, open driver, linux
#!/bin/sh
#CPU
TARGET_GPU='83000';
TARGET_CPU='83000';
SENSOR_DATA=$(more /sys/class/drm/card0/device/drm/card0/device/hwmon/hwmon1/temp1_input);
#CPU
cpu_temp[0]=$(more /sys/bus/platform/devices/coretemp.0/temp2_input);
cpu_temp[1]=$(more /sys/bus/platform/devices/coretemp.0/temp3_input);
cpu_temp[2]=$(more /sys/bus/platform/devices/coretemp.0/temp4_input);
cpu_temp[3]=$(more /sys/bus/platform/devices/coretemp.0/temp5_input);