Skip to content

Instantly share code, notes, and snippets.

View nocturne1's full-sized avatar

Jay P nocturne1

  • 15:17 (UTC -07:00)
View GitHub Profile
@Capncavedan
Capncavedan / backsimmer.rb
Created May 28, 2012 01:46
AppleScript to assist with scheduling changes in Backblaze backup speed
#!ruby
VALID_SPEED_DESCRIPTORS = %w(slow medium fast unlimited 0 10 20 30 40 50 60 70 80 90 100)
def applescript_for_speed(descriptor)
speed = case descriptor.to_s.downcase
when "slow"
"20"
when "medium"
"40"