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
gh pr create --title "testing dispatch triggers" --body "Testing dispatch triggers" --base main --head $(git rev-parse --abbrev-ref HEAD) |
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
gcloud projects get-iam-policy gcp-project --flatten="bindings[].members" --format="table(bindings.role)" --filter="[email protected]" |
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
az devops login --organization=https://dev.azure.com/YOUR_ORG/ | |
az devops project list | |
az pipelines list --detect --org=https://dev.azure.com/YOUR_ORG/ --project=YOUR_AZURE_DEVOPS_PROJECT | |
az pipelines run --branch $(git rev-parse --abbrev-ref HEAD) --detect --org=https://dev.azure.com/YOUR_ORG/ --project=YOUR_AZURE_DEVOPS_PROJECT --name=YOUR_PIPELINE_NAME | |
# It will execute pipeline from your current active branch in the terminal |
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
"'$variable'" |
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
cbr() { | |
task_id=$1 | |
feature=$2 | |
title="$(tr '[:upper:]' '[:lower:]' <<< $3)" | |
git checkout -b "$task_id-$feature-${title// /_}" | |
} |
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
heroku dyno:scale -a logo-changer worker=0 | |
heroku dyno:scale -a logo-changer worker=1 |
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
param($Timer) | |
$toll = Get-AzResourceGRoup | Where-Object ResourceGroupName -like 'sandbox*' | |
Write-Host "$toll.ResourceGroupName" | |
foreach ($item in $toll) { | |
Write-Host "Bye ($item.ResourceGroupName)" | |
Remove-AzResourceGroup -Name $item.ResourceGroupName -Force | |
} |
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 get secret <secret_name> -o jsonpath='{.data}' |
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 --namespace=<NAMESPACE> exec -it POD-app-deployment-5d4c4d9c85-vkqlt -- sh |
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
git checkout <your-branch> | |
git reset --soft HEAD~<n> # this is the number of commits you want to squash down | |
git commit -m "<message>" | |
git push -f origin <your-branch> |