Skip to content

Instantly share code, notes, and snippets.

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

Murilo Sandiego murilosandiego

🏠
Working from home
  • Brazil
View GitHub Profile
@murilosandiego
murilosandiego / gist:be4ca098c9c21317f7f4c16aa435628f
Last active September 18, 2020 21:06
Deploy Android Flutter App
Altera versão do APP
flutter clean
flutter build appbundle
bundletool build-apks --bundle=build/app/outputs/bundle/release/app-release.aab --output=build/app/outputs/bundle/release/apks/apks.apks
bundletool install-apks --apks=build/app/outputs/bundle/release/apks/apks.apks
@murilosandiego
murilosandiego / .bashrc
Created April 20, 2018 17:08
.bashrc with git branch
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\] \[\033[33;1m\]\w\[\033[m\] (\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)) \$ "
@murilosandiego
murilosandiego / Regex PHP
Created November 18, 2016 12:21
Regex PHP
<?php
# Removing symbols
$example1 = "String with letters, numbers 0123456789 and symbols !@#$%¨&*()_+";
echo preg_replace("/[^a-zA-Z0-9\s]/", "", $example1);
# Remove symbols, including spaces
$example2 = "String with letters, numbers 0123456789 and symbols !@#$%¨&*()_+";
echo preg_replace("/[^a-zA-Z0-9]/", "", $example2);
@murilosandiego
murilosandiego / Proxy git
Created September 21, 2016 17:59
Proxy Git
git config --global http.proxy meu.servidor:8080 #on
git config --global --unset http.proxy #off
@murilosandiego
murilosandiego / Corrigir_Instalacao_Android_Studio
Created September 6, 2016 04:34
Corrigir instalação do Android Studio no Ubuntu 16
sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6
@murilosandiego
murilosandiego / Iniciar no django
Last active September 22, 2016 17:16
Configurar Django
1 - Configure sua máquina:
$sudo [seu gerenciador de pacotes] make build-essential libssl-dev zlib1g-dev libbz2-dev libsqlite3-dev wget curl llvm libncurses5-dev git
2 - Crie o seu diretório de trabalho
$ mkdir wttd && cd wttd
3- Configure seu Environment
$ python -m venv .wttd
4- Ative seu Environment