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
| #!/bin/bash | |
| # Target framework == net 9.0 | |
| set -e | |
| if [ $# -lt 1 ]; then | |
| echo "Uso: $0 caminho/projeto.csproj" | |
| exit 1 | |
| fi |
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
| #!/bin/bash | |
| # Script to analyze and prepare a .NET project for upgrade | |
| # This script uses the .NET Upgrade Assistant to analyze the project, | |
| # create necessary directories, and move files to appropriate locations. | |
| # Run this script from the root of your solution directory. | |
| # Reference: https://dotnet.microsoft.com/en-us/platform/upgrade-assistant | |
| # Define the target framework version |
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
| #!/bin/bash | |
| # create mongodb_exporter.service | |
| cat > /etc/systemd/system/mongodb_exporter.service <<END | |
| [Unit] | |
| Description=mongodb exporter service | |
| After=network.target | |
| [Service] | |
| ExecStart=/usr/local/bin/mongodb_exporter --collect-all --mongodb.uri=mongodb://<username>:<password>@<host:port>/?ssl=false |
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
| # # Datasource: AWS Load Balancer Controller IAM Policy get from aws-load-balancer-controller/ GIT Repo (latest) | |
| data "http" "lbc_iam_policy" { | |
| url = "https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/main/docs/install/iam_policy.json" | |
| # Optional request headers | |
| request_headers = { | |
| Accept = "application/json" | |
| } | |
| } |
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
| @description('Specifies the location for resources.') | |
| param location string = 'brazilsouth' | |
| resource myStorage 'Microsoft.Storage/storageAccounts@2019-06-01' = { | |
| name: 'Name' | |
| location: location | |
| sku: { | |
| name: 'Standard_LRS' | |
| } | |
| kind: 'StorageV2' |