上传截图到 http://img.vim-cn.com/

2019PHP高薪工程师学习路线图....>>>

#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
# upircimage.rb /tmp/a.png

# you may want change this
dest_url = 'http://img.vim-cn.com/'
cmd = ['curl', '--compressed', dest_url]
for f in ARGV
  cmd += ['-F', 'name=@'+f]
end
p cmd
system cmd.join ' '