Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Nathan Hollis nh43de

🏠
Working from home
View GitHub Profile
@nh43de
nh43de / clean.bat
Created Sep 22, 2021
Clean all local temp files, including Visual Studio / JetBrains
View clean.bat
# cleans all temp files when Visual Studio / others starts swelling and going slow
rd /Q /S "%localappdata%\temp"
rd /Q /S "%localappdata%\JetBrainsCache"
@nh43de
nh43de / CloneAllRepos.ps1
Last active Jul 2, 2021
Clone all repos from Azure DevOps using Powershell
View CloneAllRepos.ps1
<#
--credits to https://blog.rsuter.com/script-to-clone-all-git-repositories-from-your-vsts-collection/
Create a file called "CloneAllRepos.config" in the same directory with
[General]
Url=??
Username=??
Password=??
@nh43de
nh43de / gitSync.ps1
Created Mar 5, 2020
Update all local git repos in a directory using Powershell
View gitSync.ps1
Get-ChildItem -Directory | ForEach-Object {
echo $_.name
cd $_
git fetch --all
git pull
cd ../
}