Skip to content

Instantly share code, notes, and snippets.

@yanks
Created January 5, 2012 17:58
Show Gist options
  • Save yanks/1566378 to your computer and use it in GitHub Desktop.
Save yanks/1566378 to your computer and use it in GitHub Desktop.
Share with Jungle Disk
#!/usr/bin/ruby
require 'base64'
require 'uri'
ARGV.each() do |arg|
#expand
arg = File.expand_path(arg)
pathout = Base64.encode64(arg)
url = "http://localhost:2667/~publish?paths=" + URI.escape(pathout)
puts url
system("open #{url}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment