Skip to content

Instantly share code, notes, and snippets.

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

Rafael Carreiro carreirorco

🏠
Working from home
View GitHub Profile

Módulos Python Interessantes

pyautogui -> controlar mouse e teclado
mouseinfo -> obter info de posição do mouse
openpyxl -> manipular planilhas xlsx/xlsm
selenium -> automatizar interação com browser
webdriver-manager -> gerenciar drivers para o selenium
pyperclip -> utilizar clipboard para copiar e colar
@carreirorco
carreirorco / Install-AWX-19.5.0.md
Last active January 28, 2022 00:27
Install-AWX-19.5.0

Testado no Ubuntu 20.04 (LTS) x64 hospedado na Digital Ocean

Criar um usuário ubuntu:

useradd -m -s /bin/bash -g sudo ubuntu
passwd ubuntu
su - ubuntu
---
- hosts: localhost
tasks:
- name: Import a key from a url
become: yes
ansible.builtin.rpm_key:
state: present
key: https://packages.microsoft.com/keys/microsoft.asc
---
- hosts: localhost
tasks:
- name: Add the flathub flatpak repository remote to the user installation
community.general.flatpak_remote:
name: flathub
state: present
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
method: user
- hosts: localhost
roles:
- role: jaredhocutt.gnome_extensions
vars:
gnome_extension_ids:
- 779 # Clipboard Indicator by @Tudmotu
- 1319 # GSConnect by @dlandau
- 750 # OpenWeather by @jens
- 906 # Sound Input & Output Device Chooser by @kgshank
- 19 # User Themes by @fmuellner
- hosts: localhost
roles:
- role: jaredhocutt.gnome_extensions
vars:
gnome_extension_ids:
- 779 # Clipboard Indicator by @Tudmotu
- 1319 # GSConnect by @dlandau
- 750 # OpenWeather by @jens
- 906 # Sound Input & Output Device Chooser by @kgshank
- 19 # User Themes by @fmuellner
PLAY RECAP *************************************************************************************************************************************************************
localhost : ok=38 changed=16 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0
@carreirorco
carreirorco / gist:0f35cc282ab70325177952e62684475a
Created August 29, 2021 17:38
InstallGnomeExtensions.yml
- hosts: localhost
roles:
- role: jaredhocutt.gnome_extensions
vars:
gnome_extension_ids:
- 779 # Clipboard Indicator by @Tudmotu
- 1319 # GSConnect by @dlandau
- 750 # OpenWeather by @jens
- 906 # Sound Input & Output Device Chooser by @kgshank
- 19 # User Themes by @fmuellner
@carreirorco
carreirorco / gist:f8aba85f80c8bf50b1c83e634d4f6b4d
Created August 29, 2021 17:24
resultado_execucao_InstallGnomeExtensions_yml
[rafael@fedora lab_ansible]$ ansible-playbook InstallGnomeExtensions.yml
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [localhost] *******************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************
ok: [localhost]
TASK [jaredhocutt.gnome_extensions : Parse Gnome Shell version] ********************************************************************************************************
ok: [localhost]
@carreirorco
carreirorco / gist:d01efd2080b9f528b7bf0ce2295bae76
Last active August 29, 2021 17:22
install_jaredhocutt.gnome_extensions_ansible_role.sh
###
# Criar o diretório e acessá-lo
###
mkdir lab_ansible ; cd lab_ansible
###
# Criar o playbook que utilizará a role citada
###
echo '- hosts: localhost
roles: