Skip to content

Instantly share code, notes, and snippets.

View pransteter's full-sized avatar
🦍

Rômulo Pransteter pransteter

🦍
  • Sorocaba/SP
View GitHub Profile
{
"Ansi 5 Color" : {
"Red Component" : 0.87335008382797241,
"Color Space" : "sRGB",
"Blue Component" : 1,
"Alpha Component" : 1,
"Green Component" : 0.58545517921447754
},
"Tags" : [
@pransteter
pransteter / gist:ecd2cf37f973f93056b01cd66ac70849
Last active June 18, 2020 13:48
Burlar a falta de suporte do docker para resolver hosts no macOS
# Instalar nginx pelo brew:
$ brew install nginx
# Para o nginx:
$ sudo nginx -s stop
# Configurar o arquivo /usr/local/etc/nginx/nginx.conf
@pransteter
pransteter / git-stash
Created April 4, 2016 17:06 — forked from bytefade/git-stash
Git stash, quando você trabalha em branch errado.
$ git stash
$ git stash branch temporario
$ git checkout nova-consulta
$ git merge --no-ff temporario
$ git branch -d temporario
Com o git stash eu peguei minhas mexidas e guardei em lugar seguro. Nisso, o master voltou a ficar com o conteúdo correto. Ufa!
Com o git stash branch temporario eu criei um branch com elas, de nome temporario.
Com o git checkout eu entrei no branch correto, nova-consulta
Com o git merge eu peguei a minha mexida, que agora está no branch temporario, e incorporei ao branch correto (nova-consulta) :-)