This file contains hidden or 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 private key | |
| openssl genrsa -out <username>.key 2048 | |
| # create csr | |
| openssl req -new -key <username>.key -out <username>.csr -subj "/CN=<username>/O=VX" | |
| # sign the request (by the K8S CA) | |
| # CA certs usually located in /etc/kubernetes/pki/ or ~/.minikube/ (look for ca.crt and ca.key) | |
| # or in the case of Docker Desktop for Windows, copy them to a temp path | |
| # kubectl cp kube-apiserver-docker-desktop:run/config/pki/ca.crt -n kube-system /tmp/ca.crt |
This file contains hidden or 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 create secret docker-registry regcred --docker-server=<your-registry-server> --docker-username=<your-name> --docker-password=<your-pword> --docker-email=<your-email> | |
This file contains hidden or 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 config view | |
| kubectl config set-cluster <clustername> <--insecure-skip-tls-verify=true> --server=https://<cluster-uri> | |
| kubectl config set-context <contextname> --user=<username> --namespace=default --cluster=<clustername> | |
| kubectl config use-context <contextname> |
This file contains hidden or 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
| ws --spa index.html --http2 -z --port 443 |
This file contains hidden or 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@latest | |
| npm uninstall -g angular-cli | |
| npm cache verify | |
| npm install -g @angular/cli@latest |
This file contains hidden or 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
| import-module MSOnline | |
| $msolcred = get-credential | |
| connect-msolservice -credential $msolcred | |
| $clientId = "<>" | |
| $keys = Get-MsolServicePrincipalCredential -AppPrincipalId $clientId | |
| Remove-MsolServicePrincipalCredential -KeyIds @("KeyId1"," KeyId2"," KeyId3") -AppPrincipalId $clientId | |
| $bytes = New-Object Byte[] 32 | |
| $rand = [System.Security.Cryptography.RandomNumberGenerator]::Create() |
This file contains hidden or 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
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 | |
| echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb.list | |
| sudo apt update | |
| sudo apt install mongodb-org-shell | |
| sudo apt install mongo-org-tools |
This file contains hidden or 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
| // vim: syntax=bash | |
| az acr repository delete --name <registry name> --repository <repository name> |
This file contains hidden or 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
| // vim: syntax=bash | |
| git checkout --track origin/feature/<name> |
This file contains hidden or 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
| FROM openjdk:8-jre-alpine | |
| ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"] | |
| # Add the app | |
| ARG JAR_FILE | |
| ADD target/${JAR_FILE} /app.jar | |
| # Install Microsoft Default fonts | |
| RUN apk --update add fontconfig msttcorefonts-installer | |
| RUN update-ms-fonts |