https://github.com/jiajunhuang/pasty
公司的项目用了 thrift,所以自己整 gRPC 来玩玩。以后就可以愉快的到处复制粘贴了。
感受:
看看 pasty 的使用:
jiajun@idea ~: type p
p is /home/jiajun/golang/bin/p
jiajun@idea ~: echo "hello" > test.txt
jiajun@idea ~: p < test.txt
jiajun@idea ~: p -limit 1
file id 3 created at 2018-04-10 23:19:03 +0800 CST ==================
hello
file id 3 created at 2018-04-10 23:19:03 +0800 CST over ==================
jiajun@idea ~: p -limit 1 -hint=false
hello
jiajun@idea ~: echo "hello world" | p
jiajun@idea ~: p -limit 1 -hint=false
hello world
jiajun@idea ~: p -limit 2 -hint=false
hello world
hello
jiajun@idea ~: p -limit 2
file id 4 created at 2018-04-10 23:19:35 +0800 CST ==================
hello world
file id 4 created at 2018-04-10 23:19:35 +0800 CST over ==================
file id 3 created at 2018-04-10 23:19:03 +0800 CST ==================
hello
file id 3 created at 2018-04-10 23:19:03 +0800 CST over ==================
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.