Skip to content

Instantly share code, notes, and snippets.

@kejadlen
Created February 29, 2016 03:59
Show Gist options
  • Save kejadlen/fed0384e602dfd578573 to your computer and use it in GitHub Desktop.
Save kejadlen/fed0384e602dfd578573 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
fan_speed = (ARGV.shift || 1100).to_i
smc = '~/Applications/smcFanControl.app/Contents/Resources/smc'
fan_speed = (fan_speed << 2).to_s(16)
`#{smc} -k F1Mx -w #{fan_speed}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment