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
# updated version here: https://gist.github.com/garystafford/8196920 | |
# loosely based on post from ArchWiki and Alan Pope | |
# https://wiki.archlinux.org/index.php/proxy_settings | |
# this is alternative to git config | |
# configure proxy for git while on corporate network | |
function proxy_on(){ | |
export PASSWORD=my_password | |
export PROXY_SERVER=my_proxy |
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
# updated version here: https://gist.github.com/garystafford/8196920 | |
# loosely based on post from ArchWiki and Alan Pope | |
# https://wiki.archlinux.org/index.php/proxy_settings | |
# this is alternative to git config | |
# configure proxy for git while on corporate network | |
function proxy_on(){ | |
read -s -p "Enter Password: " PASSWORD | |
export PROXY_SERVER=my_proxy |
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
[CmdletBinding(DefaultParameterSetName='All')] | |
Param | |
( | |
[Parameter(ParameterSetName='All',Mandatory=$true,ValueFromPipelineByPropertyName=$true,ValueFromPipeline=$true)] | |
[Parameter(ParameterSetName='Individual',Mandatory=$true,ValueFromPipelineByPropertyName=$true,ValueFromPipeline=$true)] | |
[string[]]$ComputerName, | |
[Parameter(ParameterSetName='All')] | |
[switch]$All = $True, | |
[Parameter(ParameterSetName='Individual')] | |
[switch]$AD, |