Created
July 23, 2016 19:48
-
-
Save citrusui/81211af80d6dc93961acded95d495306 to your computer and use it in GitHub Desktop.
Customized URLs for https://git.io
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 | |
print "URL: " | |
ENV["url"] = gets.chomp | |
print "Code: " | |
ENV["code"] = gets.chomp | |
system 'curl -i https://git.io -F "url=$url" -F "code=$code"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment