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 --orphan FixHistory | |
git add -A # Add all files and commit them | |
git commit -m "Fix history" | |
git branch -D develop # Deletes the master branch | |
git branch -m develop # Rename the current branch to master | |
git push -f origin develop # Force push master branch to github | |
git gc --aggressive --prune=all # remove the old files |
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
npx npm-remote-ls jsrsasign |
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
mvn dependency:tree -Dincludes=org.apache.tomcat.embed:tomcat-embed-core |
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
// vim: syntax=bash | |
az login --tenant <tenantid> --allow-no-subscriptions |
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
sudo docker run -d --name my-mongo -p 27017:27017 -v ~/data:/data/db \ | |
-e MONGO_INITDB_ROOT_USERNAME=<myuser> \ | |
-e MONGO_INITDB_ROOT_PASSWORD=<mysecret> \ | |
mongo |
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 commit -a -m "Saving my work" | |
git branch my-saved-work | |
git fetch origin | |
git reset --hard origin/master |
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
# AZ CLI on Ubuntu | |
sudo apt-get update | |
sudo apt-get install azure-cli | |
# AZ CLI on Windows | |
# https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows | |
Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet' | |
# Maven on Windows | |
https://maven.apache.org/download.cgi |
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
// vim: syntax=bash | |
az ad sp list --display-name <displayname> | |
az ad sp credential reset --name <appId> --years 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
git checkout --orphan temp_branch | |
git add -A | |
git commit -am "Initial commit" | |
git branch -D master | |
git branch -m master | |
git push -f origin master |
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 tag <image> <repo uri>/<repository name> | |
docker push <repo uri>/<repository name> |
NewerOlder