Skip to content

Instantly share code, notes, and snippets.

View Vinaum8's full-sized avatar
🎈
Voe alto e seja leve!

Vinícius Fernandes Vinaum8

🎈
Voe alto e seja leve!
View GitHub Profile
@Vinaum8
Vinaum8 / convert-csproj-to-sdk-style.sh
Last active June 21, 2025 16:19
convert csproj to sdk style
#!/bin/bash
# Target framework == net 9.0
set -e
if [ $# -lt 1 ]; then
echo "Uso: $0 caminho/projeto.csproj"
exit 1
fi
#!/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
@Vinaum8
Vinaum8 / mongodb_exporter_systemd_setup.sh
Last active March 20, 2024 17:54 — forked from rbudiharso/mongodb_exporter_systemd_setup.sh
mongodb_exporter systemd setup
#!/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
@Vinaum8
Vinaum8 / aws_lb_controller.tf
Created June 28, 2023 17:53
Creation Policy and Role for Module EKS AWS
# # 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"
}
}
@Vinaum8
Vinaum8 / main.bicep
Created April 16, 2022 15:52
Bicep - account storage
@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'