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

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

#!/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 ' '