Last active
August 29, 2015 14:22
-
-
Save uiur/53968cd2ddc456354047 to your computer and use it in GitHub Desktop.
サーバー不要でセキュアな社内Gyazoクライアント
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
image_file = "/tmp/gyazo_printer#{$$}.png" | |
pdf_file = "/tmp/gyazo_printer#{$$}.pdf" | |
`screencapture -i #{image_file}` | |
`sips -s format pdf #{image_file} --out #{pdf_file}` | |
`lpr #{pdf_file}` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment