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
If (!(New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { | |
Write-Host 'Run this as administrator.' | |
$choice = Read-Host 'Do you want to re-run this as administrator? [y/N]' | |
if ($choice -ne 'y') { | |
exit 1 | |
} | |
$actualScriptRoot = $PSScriptRoot | |
if ((Get-Item $PSCommandPath).Target) { | |
$actualScriptRoot = Split-Path -Parent ((Get-Item $PSCommandPath).Target) | |
} |
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
// Released under MIT license | |
// Copyright (c) 2009-2010 Dominic Baggott | |
// Copyright (c) 2009-2010 Ash Berlin | |
// Copyright (c) 2011 Christoph Dorn <[email protected]> (http://www.christophdorn.com) | |
/*jshint browser:true, devel:true */ | |
(function( expose ) { | |
/** |
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
package main | |
import ( | |
"flag" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"strings" | |
) |
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
# one or the other, NOT both | |
[url "https://github"] | |
insteadOf = git://github | |
# or | |
[url "[email protected]:"] | |
insteadOf = git://github |