Created
November 22, 2012 10:14
-
-
Save 1syo/4130393 to your computer and use it in GitHub Desktop.
This file contains 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
--- origin 2010-09-17 04:47:24.000000000 +0900 | |
+++ replacement 2012-11-22 19:12:33.000000000 +0900 | |
@@ -38,7 +38,7 @@ | |
# upload | |
boundary = '----BOUNDARYBOUNDARY----' | |
-HOST = 'gyazo.com' | |
+HOST = 'localhost' | |
CGI = '/upload.cgi' | |
UA = 'Gyazo/1.0' | |
@@ -60,7 +60,7 @@ | |
'User-Agent' => UA | |
} | |
-Net::HTTP.start(HOST,80){|http| | |
+Net::HTTP.start(HOST,3000){|http| | |
res = http.post(CGI,data,header) | |
url = res.response.to_ary[1] | |
system "echo -n #{url} | pbcopy" |
Author
1syo
commented
Nov 22, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment