Skip to content

Instantly share code, notes, and snippets.

@seki
Created September 6, 2015 14:39
Show Gist options
  • Save seki/49f8296a99a2bdf08ccc to your computer and use it in GitHub Desktop.
Save seki/49f8296a99a2bdf08ccc to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
File.write("/sys/class/leds/led0/trigger", "heartbeat")
File.write("/tmp/haltkey", Time.now.to_s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment