Skip to content

Instantly share code, notes, and snippets.

View chadkerley's full-sized avatar

chadkerley

View GitHub Profile
@garystafford
garystafford / git_proxy_functions.sh
Last active August 1, 2022 14:47
Gist for blog post 'Easy Configuration of Git for Windows on a Corporate Network'. Easily turn proxy-related settings on and off for Git for Windows. 1) Add these functions to your ~\.bashrc file, 2) Change PASSWORD, PROXY_SERVER, and PROXY_PORT default values, 3) Open new Git Bash interactive shell window and execute function before using git: …
# 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
@mephissto
mephissto / git_proxy_functions.sh
Created November 16, 2016 15:38 — forked from garystafford/git_proxy_functions.sh
Gist for blog post 'Easy Configuration of Git for Windows on a Corporate Network'.Easily turn proxy-related settings on and off for Git for Windows.1) Add these functions to your ~\.bashrc file, 2) Change PASSWORD, PROXY_SERVER, and PROXY_PORT default values, 3) Open new Git Bash interactive shell window and execute function before using git: pr…
# 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
@SMSAgentSoftware
SMSAgentSoftware / Delete-DeviceRecords.ps1
Last active October 23, 2024 11:56
Deletes device records in AD / AAD / Intune / Autopilot / ConfigMgr. Useful for Autopilot test deployments.
[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,