Skip to content

Instantly share code, notes, and snippets.

@1syo
Created November 22, 2012 10:14
Show Gist options
  • Save 1syo/4130393 to your computer and use it in GitHub Desktop.
Save 1syo/4130393 to your computer and use it in GitHub Desktop.
--- 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"
@1syo
Copy link
Author

1syo commented Nov 22, 2012

patch script < ~/Documents/Gyazo/rgyazo_script.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment