Skip to content

Instantly share code, notes, and snippets.

@RenanMatias
Last active February 15, 2023 17:22
Show Gist options
  • Save RenanMatias/eeab4211b1b02f9c706a0de21ee355bd to your computer and use it in GitHub Desktop.
Save RenanMatias/eeab4211b1b02f9c706a0de21ee355bd to your computer and use it in GitHub Desktop.
CONFIGURA TUDO

Configuração Inicial do Git

Configuração Global do seu nome

git config --global user.name "SEU NOME"

Configuração Global do seu email

git config --global user.email "SEU E-MAIL"

Configuração Global do branch padrão

git config --global init.defaultBranch main

Salvar senha de administrador sudo

  1. No terminal, executar o comando
sudo nano /etc/sudoers
  1. Dentro do arquivo, incluir o texto abaixo no final arquivo, alterando o {username} pelo seu nome de usuário
{username}    ALL=(ALL:ALL) NOPASSWD:ALL
  1. Salvar CRTL+O ENTER e sair do arquivo CRTL+X

Key Generator

python -c "import string as s; from random import SystemRandom as sr; print(''.join(sr().choices(s.ascii_letters + s.punctuation, k=64)))"

Instalar Python no Ubuntu

sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update

Altere a versão do python conforme desejada

sudo apt-get install python3.11 python3.11-venv

Abaixo é o comundo para alterar o path do python para a versão instalada

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1

Instale os outras pacotes de suporte do python

sudo apt install python3.11-dev python3.11-venv python3.11-distutils python3.11-gdbm python3.11-tk python3.11-lib2to3 -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment