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
net localgroup docker-users AzureAD\username /add | |
# then restart the computer |
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
dotnet dev-certs https --trust |
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
sep=, |
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
param ([switch]$delete) | |
$currentLocation = Get-Location | |
$counter = 1 | |
if(!$delete) { | |
Get-ChildItem $currentLocation -Filter "*.groovy" -recurse | Foreach-Object { | |
Write-Output ("----------------- File Start: " + $_.FullName + "----------------------") | |
try { |
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 $env:LOCALAPPDATA\Android\sdk\emulator | |
.\emulator -avd MY_AVD_NAME | |
[Environment]::Exit(1) |
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
#Find the node that has taints | |
kubectl get nodes | |
#Edit the node and delete the taint object | |
#Use :wq to save and quit | |
kubectl edit node <node-name> | |
# Give permissions to the dashboar | |
kubectl create clusterrolebinding kubernetes-dashboard --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard |
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
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
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" |
NewerOlder