Skip to content

Instantly share code, notes, and snippets.

Mauricio Paz mauriciopazpp

Block or report user

Report or block mauriciopazpp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mauriciopazpp
mauriciopazpp / gist:e9dea101cb8b77b70d4266ddf8bd3d9b
Created Aug 2, 2019
APT - CORRIGIR ERRO DE CHAVE PÚBLICA (W: ERRO GPG)
View gist:e9dea101cb8b77b70d4266ddf8bd3d9b
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.
@mauriciopazpp
mauriciopazpp / edit-oh-my-zsh-theme.md
Created May 9, 2019
How to edit the zshel oh my zshel theme?
View edit-oh-my-zsh-theme.md

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

View gist:1ccd521b097e7c8c26bf84e0f3a33f9b
https://ulauncher.io/
https://github.com/beajeanm/ulauncher-windows-switcher
@mauriciopazpp
mauriciopazpp / fix_history_zsh_problem.txt
Created Apr 2, 2019
How to fix history zsh - history terminal zsh not working
View fix_history_zsh_problem.txt
mv .zsh_history .zsh_history_bad
strings .zsh_history_bad > .zsh_history
fc -R .zsh_history
@mauriciopazpp
mauriciopazpp / magento_url_rewrite.md
Last active Apr 2, 2019
Duplicate entries core_url_rewrite magento 1
View magento_url_rewrite.md

How to find the duplicate entries:

select * from core_url_rewrite WHERE is_system <> 1 AND id_path REGEXP "^[0-9]+_[0-9]+$" AND (request_path REGEXP ".*-[0-9]*\.html" OR target_path = request_path)

Delete all the duplicate entries:

DELETE FROM core_url_rewrite 
WHERE is_system <> 1 AND id_path REGEXP "^[0-9]+_[0-9]+$" AND
      (request_path REGEXP ".*-[0-9]*\.html" 
          OR target_path = request_path)
View disable-cors-chrome
MAC os
open -n -a "Google Chrome" --args --user-data-dir=/tmp/temp_chrome_user_data_dir http://localhost:8100/ --disable-web-security
@mauriciopazpp
mauriciopazpp / docker.txt
Last active Feb 25, 2019
Comandos Docker.txt
View docker.txt
Sincronizar id do usuáiro do container com o do computdor
sudo chown -R $(id -u):$(id -g) .
--> Mostrar todos os container executando
docker ps
--> Parar todos os containers
docker stop $(docker ps -a -q)
--> Executar bash de um container
@mauriciopazpp
mauriciopazpp / bash_terminal_colors.txt
Last active Dec 20, 2018
Bash terminal echo colors
View bash_terminal_colors.txt
An example is
Code:
echo "\033[1;31m Hello \033[0m"
The '31' and the '1' are the things you change. The '31' is the color code, and the '1' is where you put whatever you want to color. The rest of it is the same for every color coding; the beginning starts coloring, and the stuff afterwards stops coloring ('0' switches it back to default text color). You can use the following color codes:
Code:
30 - black
@mauriciopazpp
mauriciopazpp / update-windows-in-powershel.txt
Created Nov 15, 2018
Update windows and apps in Powershell
View update-windows-in-powershel.txt
Install-Module PSWindowsUpdate
Get-WindowsUpdate
Install-WindowsUpdate
@mauriciopazpp
mauriciopazpp / cordova_publis_play_store.md
Created Nov 5, 2018
Publish cordova app on Play Store
View cordova_publis_play_store.md

generate keytools file

keytool -genkey -v -keystore mnjic.keystore -alias mnjic -keyalg RSA -keysize 2048 -validity 10000

Sign app

cordova run android --release -- --keystore=mnjic.keystore --storePassword=abcd --alias=mnjic --password=abcd

this command above will generate same entries as below mentioned in build.json

review build.json

You can’t perform that action at this time.