Skip to content

Instantly share code, notes, and snippets.

View jansanchez's full-sized avatar

Jan Sanchez jansanchez

View GitHub Profile
@jansanchez
jansanchez / gist:8524629
Last active January 27, 2017 21:50
Git tips

Git Commands

Verificar el estado de mi proyecto en git

git status

Traer los últimos cambios desde la rama remota master.

@jansanchez
jansanchez / gist:8025851
Last active December 31, 2015 18:19
Instalación del proyecto en local

README

Instalación del proyecto en local

  1. Crear el dominio local: local.ofertop.pe, luego copiar y editar el archivo encontrado en resources/apache/local.ofertop.pe.conf

  2. Editar el archivo hosts y agregar nuestro nuevo dominio con el siguiente código:

@jansanchez
jansanchez / gist:8014349
Last active December 31, 2015 16:29
Get Events of html Element with jQuery

Get Events of html Element with jQuery

Type in your console

var ele = $("#selector")[0]

after...

@jansanchez
jansanchez / tmux.conf
Created December 11, 2013 17:55 — forked from shinzui/tmux.conf
# ~/.tmux.conf
#
# See the following files:
#
# /opt/local/share/doc/tmux/t-williams.conf
# /opt/local/share/doc/tmux/screen-keys.conf
# /opt/local/share/doc/tmux/vim-keys.conf
#
# URLs to read:
#
@jansanchez
jansanchez / tmux.md
Created December 11, 2013 17:42 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@jansanchez
jansanchez / gist:7896842
Created December 10, 2013 19:41
install tmux by @andru255

install tmux

  1. tmux ~$ sudo apt-get install tmux

  2. Para usar el tmuxinator se recomienda usar el rvm(ruby virtual machine) ya que tmuxinator es un gema ~$ curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3

  3. Al terminar de instalarlo instalamos luego el tmuxinator

#seteamos el prefijo
set -g prefix C-a
#limpiamos la combinación por defecto
unbind C-b
#cambiando el delay por default de ejecución de comandos de tmux
set -sg escape-time 1
bind C-a send-prefix
@jansanchez
jansanchez / gist:7896421
Last active September 21, 2024 18:36
Install wine in linux

Install wine in linux

Type in your terminal

sudo apt-get install wine
sudo apt-get install winetricks
@jansanchez
jansanchez / gist:7893350
Last active December 30, 2015 22:19
Local domain settings: local.dominio.pe

Local domain settings: local.dominio.pe

Type in your terminal

sudo vim /etc/apache2/sites-available/local.dominio.pe

Edit the file adding the next content

@jansanchez
jansanchez / gist:7893091
Last active June 10, 2021 06:56
MySQL lower case table names sensitive in linux

MySQL lower case table names sensitive in linux

Type in your terminal

sudo vim /etc/mysql/my.cnf

Edit the file adding the entry lower_case_table_names=1 just under the group definition: [mysqld]