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
kubectl get nodes | |
#View nodes that have scheduling disabled | |
kubectl uncordon <node-name> | |
#restart server |
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
######################################################################################################################## | |
# Create a Service account and link it to the default namespace. # | |
# For example, we configure azure devops to use a Kubernetes Service Connection with a secret (yaml file) # | |
######################################################################################################################## | |
# Create service account | |
kubectl create serviceaccount <service-account-name> | |
# Get secrets from the created service account | |
kubectl get serviceaccounts <service-account-name> -o yaml |
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
run mkdir git | |
COPY Dependencies\\Git-2.24.0.2-64-bit.exe git | |
RUN powershell . C:\\git\\Git-2.24.0.2-64-bit.exe /VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS /COMPONENTS="icons,ext\reg\shellhere,assoc,assoc_sh" |
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
$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
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
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 |