Skip to content

Instantly share code, notes, and snippets.

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

Victor Manuel vickoman

🏠
Working from home
View GitHub Profile
<!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
@vickoman
vickoman / estilo.css
Created November 19, 2014 20:47
Marios and luigi CSS3
%center{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
body{
height: 100%;
width: 100%;
@vickoman
vickoman / index.html
Created November 19, 2014 20:47
Marios and luigi CSS3
<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>
@vickoman
vickoman / css.less
Created November 20, 2014 18:57
Legend Of Zelda CSS3 Animation
@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;
@vickoman
vickoman / estilo.css
Created November 28, 2014 18:43
facebook placeholder
@-webkit-keyframes placeHolderShimmer{
0%{
background-position:-468px 0
}
100%{
background-position:468px 0
}
}
@keyframes placeHolderShimmer{
@vickoman
vickoman / dns_wildcards.md
Last active August 28, 2017 15:40
how to configure wildcard DNS for MACOS

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
@vickoman
vickoman / bash_profile.sh
Created August 24, 2017 22:55
Git-Helpers
# 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
}