This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As vezes vai dar ruim nas migrations ou alguma treta que você não vai saber como resolver ou porque você já esta puto demais | |
pra continuar procurando... | |
Pensando nisso, segue a solução tabajara! | |
#Removendo as migrations com "segurança" (rsrs, rm -rf nunca é de verdade ó.Ò): | |
rm -rf <app>/migrations/ | |
#Redefinindo as migrações, ou tentando rsrs | |
python manage.py migrate --fake |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Spotify | |
127.0.0.1 pubads.g.doubleclick.net | |
127.0.0.1 securepubads.g.doubleclick.net | |
127.0.0.1 http://www.googletagservices.com | |
127.0.0.1 gads.pubmatic.com | |
127.0.0.1 ads.pubmatic.com | |
0.0.0.0 pubads.g.doubleclick.net | |
0.0.0.0 securepubads.g.doubleclick.net | |
0.0.0.0 http://www.googletagservices.com | |
0.0.0.0 gads.pubmatic.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo snap install skype --classic && sudo snap install slack --classic && sudo snap install spotify && sudo snap install telegram-desktop && sudo snap install android-studio --classic && sudo snap install vscode --classic && sudo snap install eclipse --classic && sudo snap install postman && sudo snap install kotlin-native --classic && sudo snap install rocketchat-desktop && sudo snap install handbrake-jz && sudo snap install mailspring && sudo snap install gravit-designer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global user.name "Bruno Martins" && git config --global user.email "[email protected]" && ssh-keygen -t rsa -b 4096 -C "[email protected]" && eval "$(ssh-agent -s)" && ssh-add ~/.ssh/id_rsa.pub && cat ~/.ssh/id_rsa.pub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Comandos GIT> | |
[Repositório] | |
git –bare init | |
Cria um repositório git para acesso remoto | |
[ Commits ] | |
git add -A | |
// Adiciona todas as alterações, inclusive arquivos novos, para commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Apenas vá dando enters que a mágica ira acontecer! | |
apt-get remove --purge nvidia* nouveau* && apt-get -y install build-essential linux-headers-$(uname -r) && echo " blacklist nouveau" >> /etc/modprobe.d/blacklist.conf && apt install nvidia-detect && nvidia-detect && apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') nvidia-driver nvidia-xconfig && nvidia-xconfig && update-initramfs -u |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Iniciando o projeto | ENTRE dentro da pasta que você gostaria de rodar o projeto. Eu por exemplo, inicio dentro do Dropboxmesmo usando Git... Vai que... | |
docker run -it --rm --user "$(id -u):$(id -g)" -v "$PWD":/usr/src/app -w /usr/src/app rails rails new --skip-bundle nome_do_projeto --database=postgresql | |
#CASO O COMANDO ACIMA NÃO RODE... | |
$ sudo groupadd docker | |
$ sudo gpasswd -a ${USER} docker && sudo systemctl restart docker | |
$ newgrp docker | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################################## | |
# Aconselho rodar um "sudo su" pra nao ter que ficar sempre mandando um "sudo blá blá" # | |
######################################################################################## | |
######## !!! MUITO IMPORTANTE !!! ######## | |
######## PEGUE UM CAFÉ ;) ######## | |
#Instalando o nodejs || O comando abaixo pode ser colado no terminal por inteiro (linhas 6 a 11). A linha 9 irá criar um link simbólico, pois o Debian não o faz por padrão. Pelo menos, não até agora. | |
sudo apt install curl software-properties-common && |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update && | |
sudo apt install git && | |
sudo apt install build-essential autotools-dev autoconf libcurl3 libcurl4-gnutls-dev && | |
sudo git clone https://github.com/wolf9466/cpuminer-multi && | |
cd cpuminer-multi && | |
sudo chmod +x autogen.sh && | |
sudo ./autogen.sh && | |
sudo CFLAGS="-march=native" ./configure && | |
sudo make && | |
sudo make install && |
NewerOlder