Skip to content

Instantly share code, notes, and snippets.

View amaurybsouza's full-sized avatar
:octocat:
Automating everything!

Amaury Borges Souza amaurybsouza

:octocat:
Automating everything!
View GitHub Profile
#!/bin/bash
#
# Script Name: reset_admin_pass_portainer.sh
# Description: This script performs the reset for admin user's password
#
# Author: Amaury Borges Souza
# Date: April 21, 2024
# Version: 1.0
#
# Usage:
@amaurybsouza
amaurybsouza / shell
Created April 19, 2023 10:22
shell script update
#!/bin/bash
# Update package lists
sudo apt update ; apt uprade -y
# List the packages
sudo apt list --upgradable
# Remove unnecessary packages
sudo apt autoremove -y
---
- name: Installing Azure CLI
hosts: local
gather_facts: false
become: true
tasks:
- name: Upgrade all packages
yum:
name: '*'
state: latest
// You can edit this code!
// Click here and start typing.
package main
import "fmt"
func main() {
fmt.Println("Hello")
}
resource "random_pet" "rg-name" {
prefix = var.resource_group_name_prefix
}
# Create the resource group for Azure provider
resource "azurerm_resource_group" "rg" {
name = random_pet.rg-name.id
location = var.resource_group_location
}
provider "azurerm" {
features {}
}
provider "azurerm" {
features {
}
}
resource "azurerm_resource_group" "teste-group" {
name = "rgterraform"
location = "brazilsouth"
}
$ az --version
azure-cli 2.38.0 *
core 2.38.0 *
telemetry 1.0.6 *
Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1
$ curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
$ sudo yum -y install terraform