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
$currentLocation = get-location | |
Write-Host("Current Location: $currentLocation") | |
$directories = Get-Childitem -Path $currentLocation -Directory | |
foreach($directory in $directories) | |
{ | |
Write-Host("-------------- Starting $directory --------------") |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\.ps1\ShellNew] | |
"NullFile"="" | |
[HKEY_CLASSES_ROOT\.psm1\ShellNew] | |
"NullFile"="" | |
[HKEY_CLASSES_ROOT\.cs\ShellNew] | |
"NullFile"="" |
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
$Regex = "PROJECTNAME*." | |
$Path = "$env:LOCALAPPDATA\NuGet" | |
Get-ChildItem "$Path" -Recurse | Where{$_.Name -Match "$Regex"} | Remove-Item -Recurse -Verbose | |
Write-Output("Cleaned: $Path") | |
$Path = "C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\" | |
Get-ChildItem "$Path" -Recurse | Where{$_.Name -Match "$Regex"} | Remove-Item -Recurse -Verbose |
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
$filePath = "$(Build.SourcesDirectory)" | |
$projectNameFilter = "MYBASEPROJECTNAME.*" | |
Write-Output ("package version: $(NugetVersion)") | |
Get-ChildItem "$filePath" -Filter "$projectNameFilter.csproj" -recurse | Foreach-Object { | |
Write-Output ("----------------- CSPROJ FILTER: " + $_.FullName + "----------------------") | |
try { | |
$regex = '(?<=<Version>)[^<]*' |
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
(^((develop|master)(?!-.*)))|((release|feature|hotfix|task|story)(-.*)) |
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
npm install -g npm-gui | |
cd c:\your-prject-folder | |
npm-gui localhost:9000 |
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
sqlcmd -S <server> -i C:\<your file here>.sql | |
# | |
Sqlcmd [-U login id] [-P password] | |
[-S server] [-H hostname] [-E trusted connection] | |
[-d use database name] [-l login timeout] [-t query timeout] | |
[-h headers] [-s colseparator] [-w screen width] | |
[-a packetsize] [-e echo input] [-I Enable Quoted Identifiers] | |
[-c cmdend] [-L[c] list servers[clean output]] | |
[-q "cmdline query"] [-Q "cmdline query" and exit] |
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
git config --global credential.helper wincred |
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
cd %windir%\system32\inetsrv\ | |
appcmd list wp |
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
using System; | |
using System.DirectoryServices; | |
namespace BrunoMartinsPro.TriggerErrors | |
{ | |
public class AdErrorUtils | |
{ | |
public void TriggerError() | |
{ | |
//Define connection properties |