Last active
August 29, 2015 14:01
-
-
Save iamgabeortiz/8502c5353f807c4692df to your computer and use it in GitHub Desktop.
If you need to create an MIT-License.org entry from Windows PowerShell, then here you go.
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
# -------------------------------------------------------------------------------- | |
# Requires: Windows PowerShell v2.0 | |
$url = "http://username.mit-license.org" | |
$string = '{"copyright": "Your Name, http://your_domain","url": ` | |
"http://your_domain","email": "your_email","format":"html"}' | |
$wc = new-object System.Net.WebClient | |
$wc.Encoding = [System.Text.Encoding]::ASCII | |
$wc.UploadString($url, $string) | |
<# | |
PowerShell response should look like... | |
>>> MIT license page created: http://username.mit-license.org | |
#> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment