{"id":549,"date":"2014-06-25T05:56:57","date_gmt":"2014-06-24T20:56:57","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=549"},"modified":"2014-06-25T05:56:57","modified_gmt":"2014-06-24T20:56:57","slug":"gist_commandline","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2014\/06\/25\/gist_commandline\/","title":{"rendered":"gist \u306b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u8cbc\u308a\u4ed8\u3051\u308b"},"content":{"rendered":"<div style=\"background-color: rgb(255, 255, 255); font-family: 'Lucida Grande', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Lucida Sans Unicode', Helvetica, Arial, sans-serif; font-size: 0.9em; overflow-x: hidden; overflow-y: auto; margin: 0px !important; padding: 5px 20px 26px !important;padding: 20px;padding: 20px; color: rgb(34, 34, 34); font-size: 15px; font-family: 'Roboto Condensed', Tauri, 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', AppleSDGothicNeo-Medium, 'Segoe UI', 'Malgun Gothic', Verdana, Tahoma, sans-serif; background-color: rgb(255, 255, 255); -webkit-font-smoothing: antialiased; background-position: initial initial; background-repeat: initial initial;\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u5148\u65e5\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089gist \u306b\u8cbc\u308a\u4ed8\u3051\u3089\u308c\u308b\u3093\u3060\u3068\u9a5a\u304b\u308c\u305f\u306e\u3067\u3061\u3087\u3063\u3068\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\uff0e<\/p>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u305d\u306e\u6642\u4f7f\u3063\u305fsctipt \u306f\u3053\u3061\u3089\uff0e<\/p>\n<ul>\n<li style=\"display: list-item; line-height: 1.4em;\">\u201cdefunkt\/gist\u201d <a href=\"https:\/\/github.com\/defunkt\/gist\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">https:\/\/github.com\/defunkt\/gist<\/a><\/li>\n<\/ul>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">Debian jessie \u4ee5\u964d\uff0cUbuntu 14.04 \u4ee5\u964d\u3060\u3068\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u3042\u308a\u307e\u3059\uff0e\u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u5c0e\u5165\u3057\u305f\u5834\u5408\u30b3\u30de\u30f3\u30c9\u540d\u306f <strong>gist<\/strong> \u3067\u306f\u306a\u304f <strong>gist-paste<\/strong> \u306b\u306a\u308a\u307e\u3059\uff0e<\/p>\n<ul>\n<li style=\"display: list-item; line-height: 1.4em;\">\u201cDebian \u2014 jessie \u306e gist \u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u95a2\u3059\u308b\u8a73\u7d30\u201d <a href=\"https:\/\/packages.debian.org\/jessie\/gist\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">https:\/\/packages.debian.org\/jessie\/gist<\/a><\/li>\n<li style=\"display: list-item; line-height: 1.4em;\">\u201cUbuntu \u2013 trusty \u306e gist \u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u95a2\u3059\u308b\u8a73\u7d30\u201d <a href=\"http:\/\/packages.ubuntu.com\/trusty\/gist\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">http:\/\/packages.ubuntu.com\/trusty\/gist<\/a><\/li>\n<\/ul>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u81ea\u5206\u3067\u5165\u308c\u308b\u5834\u5408\u306f\uff0cgem \u3084Homebrew \u304c\u4f7f\u3048\u307e\u3059\uff0e<\/p>\n<ul>\n<li style=\"display: list-item; line-height: 1.4em;\">apt <code style=\"border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;color: rgb(0, 0, 0); background-color: rgb(254, 236, 221); border: 1px solid rgb(239, 223, 208);\">$ sudo apt-get install gist<\/code><\/li>\n<li style=\"display: list-item; line-height: 1.4em;\">gem <code style=\"border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;color: rgb(0, 0, 0); background-color: rgb(254, 236, 221); border: 1px solid rgb(239, 223, 208);\">$ sudo gem install gist<\/code><\/li>\n<li style=\"display: list-item; line-height: 1.4em;\">Homebrew <code style=\"border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;color: rgb(0, 0, 0); background-color: rgb(254, 236, 221); border: 1px solid rgb(239, 223, 208);\">$ brew install gist<\/code><\/li>\n<\/ul>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u203bHomebrew \u304c\u52d5\u304f\u74b0\u5883\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3053\u3061\u3089\u306f\u672a\u691c\u8a3c\u3067\u3059\uff0e<\/p>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u5c0e\u5165\u5f8c\u5229\u7528\u3059\u308b\u524d\u306b\uff0c\u8a8d\u8a3c\u3092\u6e08\u307e\u305b\u3066\u304a\u304d\u307e\u3059\uff0e2\u8981\u7d20\u8a8d\u8a3c\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\uff0e<\/p>\n<pre style=\"border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; overflow: auto;\"><code data-origin=\"&lt;pre&gt;&lt;code&gt;$ gist --login\nObtaining OAuth2 access_token from github.\nGitHub username: matoken\nGitHub password: \n2-factor auth code: 984736\n\nSuccess! https:\/\/github.com\/settings\/applications\n&lt;\/code&gt;&lt;\/pre&gt;\" style=\"display: block;border: 1px solid rgb(204, 204, 204); white-space: pre; padding: 0.5em; margin: 0px;border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; letter-spacing: -1px; font-weight: bold;\">$ gist --login\nObtaining OAuth2 access_token from github.\nGitHub username: matoken\nGitHub password: \n2-factor auth code: 984736\n\nSuccess! https:\/\/github.com\/settings\/applications\n<\/code><\/pre>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u8a8d\u8a3c\u304c\u7d42\u308f\u3063\u305f\u3089\u8a66\u3057\u3066\u307f\u307e\u3059\uff0e<br style=\"clear: both;\">\u4e00\u756a\u5358\u7d14\u306a\u52d5\u304b\u3057\u65b9\u306f\u8cbc\u308a\u4ed8\u3051\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067\u3059\uff0e\u3053\u308c\u3067\u516c\u958b\u72b6\u614b\u3067\u8cbc\u308a\u4ed8\u3051\u3089\u308c\u307e\u3059\uff0e<\/p>\n<blockquote style=\"margin: 1em 20px;border-left-width: 4px; border-left-style: solid; border-left-color: rgb(230, 230, 230); padding: 0px 15px; color: rgb(119, 119, 119);\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;margin-top: 0px;margin-bottom: 0px;\">$ gist lingrbot_web.cgi<br style=\"clear: both;\"><a href=\"https:\/\/gist.github.com\/ed68bd7182ffddee4801\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">https:\/\/gist.github.com\/ed68bd7182ffddee4801<\/a><\/p>\n<\/blockquote>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u30d5\u30a1\u30a4\u30eb\u30bf\u30a4\u30d7\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u306f\u9762\u5012\u3067\u3059\u304c\u30d5\u30a1\u30a4\u30eb\u540d\u3082\u6307\u5b9a\u3057\u306a\u3044\u3068\u53cd\u6620\u3055\u308c\u306a\u3044\u3088\u3046\u3067\u3059\uff0e<\/p>\n<blockquote style=\"margin: 1em 20px;border-left-width: 4px; border-left-style: solid; border-left-color: rgb(230, 230, 230); padding: 0px 15px; color: rgb(119, 119, 119);\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;margin-top: 0px;margin-bottom: 0px;\">$ gist -f ml2lingr.pl -t perl \/tmp\/ml2lingr.pl<br style=\"clear: both;\"><a href=\"https:\/\/gist.github.com\/3021d8d064d8a1d29ba9\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">https:\/\/gist.github.com\/3021d8d064d8a1d29ba9<\/a><\/p>\n<\/blockquote>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u6a19\u6e96\u5165\u529b\u3082<\/p>\n<blockquote style=\"margin: 1em 20px;border-left-width: 4px; border-left-style: solid; border-left-color: rgb(230, 230, 230); padding: 0px 15px; color: rgb(119, 119, 119);\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;margin-top: 0px;\">$ gist<br style=\"clear: both;\">(type a gist. <ctrl-c> to cancel, <ctrl-d> when done)<br style=\"clear: both;\">hoge<br style=\"clear: both;\">fuga<br style=\"clear: both;\"><a href=\"https:\/\/gist.github.com\/3e993a396a7671403f9e\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">https:\/\/gist.github.com\/3e993a396a7671403f9e<\/a><\/ctrl-d><\/ctrl-c><\/p>\n<p style=\"margin: 1em 0px; word-wrap: break-word;margin-bottom: 0px;\">$ echo \u201choge\u201d | sha512sum |gist<br style=\"clear: both;\"><a href=\"https:\/\/gist.github.com\/970e190f97ae67c8e90d\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">https:\/\/gist.github.com\/970e190f97ae67c8e90d<\/a><\/p>\n<\/blockquote>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u66f4\u65b0\u3082\u53ef\u80fd\u3067\u3059\uff0e<\/p>\n<blockquote style=\"margin: 1em 20px;border-left-width: 4px; border-left-style: solid; border-left-color: rgb(230, 230, 230); padding: 0px 15px; color: rgb(119, 119, 119);\">\n<p style=\"margin: 1em 0px; word-wrap: break-word;margin-top: 0px;margin-bottom: 0px;\">$ gist -u 3021d8d064d8a1d29ba9 -f ml2lingr.pl -t perl \/tmp\/ml2lingr.pl<br style=\"clear: both;\"><a href=\"https:\/\/gist.github.com\/3021d8d064d8a1d29ba9\" style=\"text-decoration: none; vertical-align: baseline;color: rgb(50, 105, 160);\">https:\/\/gist.github.com\/3021d8d064d8a1d29ba9<\/a><\/p>\n<\/blockquote>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u3057\u304b\u3057\uff0c\u66f4\u65b0\u306a\u3069\u306fURL \u3084ID \u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067git\u3067clone \u3057\u3066\u304a\u3044\u3066\u7de8\u96c6\u5f8cpush \u3057\u305f\u307b\u3046\u304c\u304a\u624b\u8efd\u305d\u3046\u3067\u3059\uff0e<\/p>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u305d\u306e\u4ed6\u306epastbin\u7cfb\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u3044\u305f\u3044\u5834\u5408\u3044\u308d\u3093\u306a\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308a\u307e\u3059\uff0e\u6700\u8fd1\u306f <strong>pastebinit<\/strong> \u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\uff0e<br style=\"clear: both;\">\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306e\u5bfe\u5fdc\u30b5\u30fc\u30d3\u30b9\u306f\u3053\u3093\u306a\u304b\u3093\u3058\u3067\u3059\uff0e<\/p>\n<pre style=\"border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; overflow: auto;\"><code data-origin=\"&lt;pre&gt;&lt;code&gt;$ pastebinit -l\nSupported pastebins:\n- cxg.de\n- fpaste.org\n- p.defau.lt\n- paste.debian.net\n- paste.drizzle.org\n- paste.kde.org\n- paste.openstack.org\n- paste.pocoo.org\n- paste.pound-python.org\n- paste.ubuntu.com\n- paste.ubuntu.org.cn\n- paste2.org\n- pastebin.com\n- pastie.org\n- pb.daviey.com\n- slexy.org\n- sprunge.us\n- yourpaste.net\n&lt;\/code&gt;&lt;\/pre&gt;\" style=\"display: block;border: 1px solid rgb(204, 204, 204); white-space: pre; padding: 0.5em; margin: 0px;border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; letter-spacing: -1px; font-weight: bold;\">$ pastebinit -l\nSupported pastebins:\n- cxg.de\n- fpaste.org\n- p.defau.lt\n- paste.debian.net\n- paste.drizzle.org\n- paste.kde.org\n- paste.openstack.org\n- paste.pocoo.org\n- paste.pound-python.org\n- paste.ubuntu.com\n- paste.ubuntu.org.cn\n- paste2.org\n- pastebin.com\n- pastie.org\n- pb.daviey.com\n- slexy.org\n- sprunge.us\n- yourpaste.net\n<\/code><\/pre>\n<p style=\"margin: 1em 0px; word-wrap: break-word;\">\u3061\u306a\u307f\u306b\u3053\u306e\u3078\u3093\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u307e\u3067\u306f\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u64cd\u4f5c\u30a2\u30d7\u30ea\u3092\u4f7f\u3063\u3066\u307e\u3057\u305f\uff0e<br style=\"clear: both;\"><code style=\"border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; word-break: break-all; word-wrap: break-word; border: 1px solid rgb(204, 204, 204); padding: 0px 5px; margin: 0px 2px;color: rgb(0, 0, 0); background-color: rgb(254, 236, 221); border: 1px solid rgb(239, 223, 208);\">$ cat file | xclip<\/code> \u3068\u304b\u3059\u308b\u3068\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u304c\u30b3\u30d4\u30fc\u3055\u308c\u308b\u306e\u3067\u3053\u308c\u3092\u30d6\u30e9\u30a6\u30b6\u4e0a\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u306b\u8cbc\u308a\u4ed8\u3051\u305f\u308a\u3057\u3066\u3044\u307e\u3057\u305f\uff0e<\/p>\n<p><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=matokensmeme-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=4873114403\" style=\"width:120px;height:240px;border: 0px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=matokensmeme-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=4274068641\" style=\"width:120px;height:240px;border: 0px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=matokensmeme-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=477416366X\" style=\"width:120px;height:240px;border: 0px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089gist \u306b\u8cbc\u308a\u4ed8\u3051\u3089\u308c\u308b\u3093\u3060\u3068\u9a5a\u304b\u308c\u305f\u306e\u3067\u3061\u3087\u3063\u3068\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\uff0e \u305d\u306e\u6642\u4f7f\u3063\u305fsctipt \u306f\u3053\u3061\u3089\uff0e \u201cdefunkt\/gist\u201d https:\/\/github.com\/defunkt\/gis [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[1],"tags":[273],"class_list":["post-549","post","type-post","status-publish","format-standard","hentry","category-1","tag-273"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=549"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/549\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}