Skip to content

Instantly share code, notes, and snippets.

@iamgabeortiz
Last active August 29, 2015 14:01
Show Gist options
  • Save iamgabeortiz/8502c5353f807c4692df to your computer and use it in GitHub Desktop.
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.
# --------------------------------------------------------------------------------
# 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