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
#Show class file contents | |
javap -v My.class |
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
# jstack | |
jstack -l <PID> > threads.txt | |
Generate Heap dump on EOM error | |
-XX:+HeapDumpOnOutOfMemoryError | |
#Heap | |
jmap -dump:file=DumpFile.dump <PID> | |
jhat DumpFile.dump | |
Eclipse MAT -> dominator tree |
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 Core Function App to Windows on Azure | |
# Build a .NET Core function app and deploy it to Azure as a Windows function App. | |
# Add steps that analyze code, save build artifacts, deploy, and more: | |
# https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/dotnet-core | |
trigger: | |
- main | |
variables: | |
# Azure Resource Manager connection created during pipeline creation |
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
$allBranches = git branch -l | |
foreach($branch in $allBranches) { | |
Write-Output $branch.Replace("*", "").Trim() | |
} |
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 checkout tags/<tag> -b <branch> |
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 reset --hard <commit-hash> | |
git push -f origin master | |
git checkout $(git rev-list -n 1 tags/1.4.0) | |
git push origin --delete test |
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
# Install Ingress | |
helm repo add stable https://kubernetes-charts.storage.googleapis.com/ | |
helm install nginx-ingress stable/nginx-ingress --set controller.publishService.enabled=true |
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
docker login | |
cat ~/.docker/config.json | |
kubectl create secret generic regcred --from-file=.dockerconfigjson=~/.docker/config.json --type=kubernetes.io/dockerconfigjson | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: private-reg |
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 pod -o=custom-columns=NODE:.spec.nodeName,NAME:.metadata.name --all-namespaces |