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 branch temp | |
git checkout temp | |
git branch -f master temp | |
git checkout master | |
git branch -d temp |
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
https://www.electricmonk.nl/log/2014/09/24/ssh-port-forwarding-bind-cannot-assign-requested-address/ |
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
LD_LIBRARY_PATH=/usr/local/instantclient/ php files/console.php testjob AtualizaEstoque |
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
ssh -o serveraliveinterval=60 -C -f remoteuser@remoteip -L port:destip:port -N |
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
gunzip -c xxx.sql.gz |mysql -u root -p |
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
https://github.com/laradock/laradock/issues/102 |
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
dcleanup () { | |
docker ps --filter status=exited -q | xargs docker rm | |
docker images --filter dangling=true -q | xargs docker rmi | |
docker volume ls -qf dangling=true | xargs docker volume rm | |
} |
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 docker rmi -f $(sudo docker images -q -a) | |
sudo docker rm -f $(sudo docker ps -q -a) |
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
Abra o shell e digite o comando: | |
$ ssh <usuário>@<endereço do servidor> -D 6000 | |
A primeira vez o Linux irá perguntar se deseja salvar o host na lista de hosts conhecidos, informe yes. | |
Informe o password e pronto, nosso túnel já está estabelecido! | |
Agora abra o seu navegador (eu uso o Firefox), vá em Editar > Preferências; | |
Na aba rede, clique no botão configurar; | |
No campo acesso a internet, selecione a opção: "Configuração manual de proxy"; | |
No campo SOCKS, informe localhost e na porta, informe 6000; |
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
Quando um interval passar de 24 horas ou qualquer outra diferenca utilizar a funcao justify_interval() | |
Exemplo de interval: 24:30:00 | |
usando a funcao justify_interval() | |
Resultado: 1 day 00:30:00 |
NewerOlder