Skip to content

Instantly share code, notes, and snippets.

@jmazzi
Created May 2, 2014 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmazzi/22bb47f87a20527d361b to your computer and use it in GitHub Desktop.
Save jmazzi/22bb47f87a20527d361b to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'open3'
url = `pbpaste`.strip
Open3.popen2("pbcopy") do |stdin, stdout, wait_thr|
stdin.puts "![](#{url})"
end
gh pull-request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment