Skip to content

Instantly share code, notes, and snippets.

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

OmniWired omniwired

๐Ÿš€
Shipping
View GitHub Profile
@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);
@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 / _.md
Created July 2, 2014 20:10
firstcollision
@omniwired
omniwired / _.md
Created July 7, 2014 15:34
fireworks
@omniwired
omniwired / _.md
Created July 7, 2014 22:54
trigonometric bars
@omniwired
omniwired / _.md
Created July 10, 2014 19:51
math clock

Keybase proof

I hereby claim:

  • I am omniwired on github.
  • I am omniwired (https://keybase.io/omniwired) on keybase.
  • I have a public key whose fingerprint is 1D68 9218 A03C 5BAD FE14 0A2A 6657 A829 3E11 373D

To claim this, I am signing this object:

@omniwired
omniwired / fix_spotify_sdd.py
Created November 10, 2016 04:07
fix_spotify_sdd.py
#!/usr/bin/python
target = "/Applications/Spotify.app/Contents/MacOS/Spotify"
with open(target) as infile:
bytes = infile.read()
with open("./Spotify", "wb") as backup:
backup.write(bytes)
fixed = bytes.replace("VACUUM;", "xxxxxx;")
with open (target, "wb") as outfile:
outfile.write(fixed)