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
--- | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/virtual-environments-for-github-hosted-runners | |
name : debug | |
on : | |
push : | |
branches : [ "master" ] |
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
cp dev.tf variables.tf && gcloud secrets --project=MYGCP_PROGECT versions add terraform_variables_file --data-file=variables.tf |
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
#!/usr/bin/ruby | |
# | |
# This tool is only used to "decrypt" the github enterprise source code. | |
# | |
# Run in the /data directory of the instance. | |
require "zlib" | |
require "byebug" | |
KEY = "This obfuscation is intended to discourage GitHub Enterprise customers "+ |
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> |
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
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
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
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
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
"'$variable'" |
OlderNewer