Skip to content

Instantly share code, notes, and snippets.

View risingspiral's full-sized avatar

Eric Anderson risingspiral

  • Eugene, OR
  • 02:51 (UTC -07:00)
  • X @eric
View GitHub Profile
#!/usr/bin/ruby
require 'osx/foundation'
OSX.require_framework '/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework'
include OSX
$d=File.basename Dir.pwd
Dir.chdir '..'
fsevents_cb = proc do |stream, ctx, numEvents, paths, marks, eventIDs|
system "rsync -L -C --delete -rt --rsh='ssh -p 2222' --exclude 'public/bundles' '#{$d}' 'eanderson@localhost:/home/eanderson/sandbox/'"