Skip to content

Instantly share code, notes, and snippets.

View AmaralMarti's full-sized avatar
🏠
Working from home

Amaral AmaralMarti

🏠
Working from home
View GitHub Profile
#!/bin/bash
echo "Instalando dependencias..."
sudo apt update && sudo apt upgrade -y && apt install -y dialog curl
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.9.0
# Para bash
echo ". $HOME/.asdf/asdf.sh" >> ~/.bashrc
echo ". $HOME/.asdf/completions/asdf.bash" >> ~/.bashrc
@AmaralMarti
AmaralMarti / debian-setup.sh
Created July 2, 2023 23:23
Setup Debian 12
#!/bin/bash
echo "Atualizando o Debian..."
apt update && apt upgrade -y && apt install -y dialog wget curl
export TERM=xterm-color
# Armazena a saída do comando dialog em uma variável
opcoes=$(dialog --colors --stdout --separate-output \
--title "" \
@AmaralMarti
AmaralMarti / ubuntu-setup.sh
Last active July 17, 2023 13:02
Ubuntu Setup
#!/bin/bash
echo "Atualizando o Ubuntu..."
sudo apt update && sudo apt upgrade -y && apt install -y dialog wget curl network-manager
export TERM=xterm-color
# Armazena a saída do comando dialog em uma variável
opcoes=$(dialog --colors --stdout --separate-output \
--title "" \
@AmaralMarti
AmaralMarti / init-fedora.sh
Last active July 2, 2023 16:31
Fedora | Default configurations script
#!/bin/bash
# Upgrade Fedora
sudo dnf -y upgrade --refresh
# Install dependecies
sudo dnf -y install dnf-plugins-core wget zsh htop vim git openssh-server net-tools
# SSH Server
sudo systemctl enable sshd