Primer paso instalar dnsmasq:
brew install dnsmasq
Copiar El ARchivo de configuracion default
cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
Editar el archivo /usr/local/etc/dnsmasq.conf
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Home que requiere Login</title> | |
| </head> | |
| <body> | |
| <h1>Hola {% if user.is_authenticated %}{{ user.username }} <a href="{% url 'url_logout'%}">Salir</a>{% endif %}</h1> | |
| </body> | |
| </html> |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Login Sistema</title> | |
| </head> | |
| <body> | |
| <h1>Formulario de Login</h1> | |
| <form action="." method="POST"> | |
| {% csrf_token %} |
| ############################################# | |
| # Push de la rama actual | |
| git push origin $rama_actual | |
| ############################################# | |
| # Volver a un commit anterior, descartando los cambios | |
| git reset --HARD $SHA1 | |
| ############################################# | |
| # Ver y descargar Ramas remotas |
| %center{ | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| } | |
| body{ | |
| height: 100%; | |
| width: 100%; |
| <div class="mario"> | |
| <div class="hat-head"></div> | |
| <div class="hat-logo"></div> | |
| <div class="hat-brim"></div> | |
| <div class="ear left"></div> | |
| <div class="ear right"></div> | |
| <div class="head"> | |
| <div class="eyebrow left"></div> |
| @green:#339a00; | |
| @brown:#cd6600; | |
| @peach:#ffcd66; | |
| @dimension:15px; | |
| .link{ | |
| -webkit-animation: swing 0.6s linear infinite; | |
| -moz-animation: swing 0.6s linear infinite; | |
| animation: swing 0.6s linear infinite; |
| @-webkit-keyframes placeHolderShimmer{ | |
| 0%{ | |
| background-position:-468px 0 | |
| } | |
| 100%{ | |
| background-position:468px 0 | |
| } | |
| } | |
| @keyframes placeHolderShimmer{ |
Primer paso instalar dnsmasq:
brew install dnsmasq
Copiar El ARchivo de configuracion default
cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
Editar el archivo /usr/local/etc/dnsmasq.conf
| 1.- Editamos el archivo de configuracion /usr/local/etc/dnsmasq.conf | |
| Cambiamos: address=/knowblyhost/127.0.0.1 por address=/knowblyhost.local/127.0.0.1 | |
| 2.- Editamos nuestros archivos hosts: | |
| En mac la ruta es: /private/etc/hosts | |
| Agregamos la linea 127.0.0.1 knowblyhost.local | |
| 3.- Renombramos el resolver: | |
| Comando para mac: | |
| mv /etc/resolver/knowblyhost /etc/resolver/knowblyhost.local |
| # Funcion que hace: Add | commit al branch que estemos en ese momento sin hacer push | |
| # @Params: Recibe como parametro el mensaje del commit | |
| function __commit { | |
| if [ -z $1 ]; then | |
| echo "Debe poner el texto del commit" | |
| else | |
| git add -A . | |
| git commit -m "$1" | |
| fi | |
| } |