Skip to content

Instantly share code, notes, and snippets.

View frontend-3's full-sized avatar

Elizabeth Manrique frontend-3

View GitHub Profile
@frontend-3
frontend-3 / es6_mod.js
Last active February 24, 2016 23:22
yoson es6 module
/***
Module mod
@class class
@main main
@author author
***/
yOSON.AppCore.addModule('mod_name', Sb => {
let st = {},
dom = {},
@frontend-3
frontend-3 / gist:360d9f15657139adba00
Created July 6, 2015 16:26
Bash para git pull y push en branch actual
function current_branch() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo ${ref#refs/heads/}
}
function gpull() {
git pull origin $(current_branch)
}
function gpush() {
@frontend-3
frontend-3 / .editorconfig
Last active March 28, 2016 20:08
EditorConfig para frontend
root = true
[*]
indent_style = tab
end_of_line = lf
charset = utf-8
insert_final_newline = true
[*.jade]
indent_style = space
server {
listen 80;
server_name localhost;
access_log /var/log/nginx/blog.access.log;
error_log /var/log/nginx/blog.error.log;
location ^~ /blog {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
@frontend-3
frontend-3 / git-update-index-folder.bash
Last active April 15, 2016 16:29
Stop tracking tracked files on folder
#Add folders
git ls-files -z path/to/folder | xargs -0 git update-index --assume-unchanged
#List files asume unchanged
git ls-files -v|grep '^h'
#Remove folder unchaged
git ls-files -z path/to/folder | xargs -0 git update-index --no-assume-unchanged
# Source http://stackoverflow.com/questions/16346535/recursive-git-update-index-assume-unchanged
1. Descargar open ssh https://github.com/PowerShell/Win32-OpenSSH/releases/download/5_15_2016/OpenSSH-Win32.zip
2. Descomprimir en el disco C:// con el nombre de openSSH
3. Instalar growl for windows http://www.growlforwindows.com/gfw/ y ejecutarlo
4. Ejecutar power shell como administrador
5. Ejecutar el comando "Set-ExecutionPolicy RemoteSigned"
6. Ingresa a la carpeta openSSH del disco C.
7. Ejecutar el comando "New-NetFirewallRule -Protocol TCP -LocalPort 22 -Direction Inbound -Action Allow -DisplayName SSH"
8. Ejecutar el comando "cd c:\openSSH"
9. Ejecutar el comando "powershell.exe .\install-sshlsa.ps1"
10. Ejecutar el comando "powershell.exe .\install-sshd.ps1"
# Get the pid
sudo netstat -ap | grep :port
lsof -n -i:port | grep LISTEN
# osx
lsof -i -P | grep -i "listen"
#Kill the process
kill pid
@frontend-3
frontend-3 / Git commands
Last active March 27, 2017 16:27
Some useful and advanced command for git.
# Rebase
git rebase —interactive HEAD~numcommit
# List all the branchs merged
git branch --merged | grep -v "\*"
# Interactive staging of specific portions of modified files.
git add -p
# Making atom your default editor
@frontend-3
frontend-3 / gist:3075b49118bae2b0c69702dad4c18316
Last active September 18, 2017 22:56
Apoyo de limpieza y comida

Contexto

Necesito apoyo doméstico porque con la hernia discal que tengo no me doy a basto para mantener tan limpia como desearía.

Apoyo interdiario

  • Barrer y trapear la sala, cuarto, balcon y baño. Todos son espacios pequeños. Tengo una escoba aparte que ayuda mucho a trapear rapidisimo.
  • Limpiar el polvo de las cosas que hay en la sala: tv, mueble, mesa de tv. (Yo tengo los productos para limpiar vidrio y silicion para el mueble)
  • Limpiar la cocina, que es bastante pequeña también. Aquí básicamente es :
  • Lavar los platos.