Skip to content

Instantly share code, notes, and snippets.

View mauriciopazpp's full-sized avatar

Mauricio Paz mauriciopazpp

  • Guarapuava-PR / Brazil
  • 17:28 (UTC -12:00)
View GitHub Profile
@mauriciopazpp
mauriciopazpp / edit-oh-my-zsh-theme.md
Last active August 28, 2020 18:46
How to edit the zshel oh my zshel theme?

vim ${ZSH}/themes/${ZSH_THEME}.zsh-theme

@mauriciopazpp
mauriciopazpp / gist:e9dea101cb8b77b70d4266ddf8bd3d9b
Created August 2, 2019 12:31
APT - CORRIGIR ERRO DE CHAVE PÚBLICA (W: ERRO GPG)
https://www.vivaolinux.com.br/dica/APT-Corrigir-erro-de-chave-publica-W-Erro-GPG
APT - CORRIGIR ERRO DE CHAVE PÚBLICA (W: ERRO GPG)
NOTA: dica válida só para Debian e derivadas.
Muitos usuários novatos não se atentam ao fato de que quando um novo repositório é adicionado, a instalação de sua chave pública (GPG) é obrigatória e tem que ser instalada manualmente (salvo em caso de comandos com a instalação da GPG prevista).
Quando isso não acontece, temos erros no update do sistema como o emulado abaixo.
##Sync google drive to local:
### This command will copy all files from google drive to local drive, if you delete a file from Google Drive, the file on your local will be deleted.
```
rclone sync GoogleDrive:/ /mnt/7B40D3947E61F989/GoogleDrive/
```
### [DANGEROUS!!!] This command will copy all files from your local and move to your Google Drive. If the file does't exist on your local, the file will be delted on your google drive!!!!
```
rclone sync /mnt/7B40D3947E61F989/GoogleDrive/ GoogleDrive:/
```
@mauriciopazpp
mauriciopazpp / create-admin-user-magento2.md
Last active August 28, 2020 18:43
[Create admin user] Create admin user magento 2 #magento2
/opt/rh/rh-php71/root/usr/bin/php -d memory_limit=-1 bin/magento admin:user:create --admin-user="redstage3" --admin-password="@123123q" --admin-email="[email protected]" --admin-firstname="Admin" --admin-lastname="Admin"
admin:user:create --admin-user="admin2" --admin-password="@123123q" --admin-email="[email protected]" --admin-firstname="Admin" --admin-lastname="Admin"
log ssh
run
vendor/bin/ece-tools cron:kill