Skip to content

Instantly share code, notes, and snippets.

View pablomp's full-sized avatar

Pablo pablomp

View GitHub Profile
@pablomp
pablomp / Guía GIT
Last active December 20, 2015 05:19
Apuntes GIT
Herramientas para Windows:
SmartGIT: http://www.syntevo.com/smartgithg/
SourceTree: http://www.sourcetreeapp.com/
GIT for Windows: http://msysgit.github.io/
Modelo GIT:
http://nvie.com/posts/a-successful-git-branching-model/
Sistemas remotos:
BitBucket: https://bitbucket.org/
@pablomp
pablomp / Plugin vagrant-vbguest
Last active December 20, 2015 12:19
Instalación plugin vagrant-vbguest, detrás de un Proxy
En la línea de comandos:
set http_proxy=http://<proxy>:<puerto>
(gem install vagrant-vbguest)
vagrant plugin install vagrant-vbguest
vagrant plugin list
@pablomp
pablomp / Crear submódulo
Last active December 20, 2015 13:29
Clonar/crear un submódulo en GIT
git submodule add <url del repositorio git> <ruta/subruta>
git submodule init
git submodule update
git commit -m "<mensaje commit>"
git push
@pablomp
pablomp / gist:6462780
Last active December 22, 2015 10:59
GIT deploy sobreescribiendo la rama
Hacer un deploy en GIT sustituyendo los fuentes locales con la copia operativa del repositorio en origin.
Tendremos en cuenta los submódulos nuevos y los existentes.
1- Descargamos lo que hay en el repositorio, incluyendo los submódulos existentes
git fetch --all --depth=1
2- Inicializamos los nuevos submódulos
git submodule init
3- Descargamos los nuevos submódulos
git submodule update
@pablomp
pablomp / gist:7426760
Last active December 28, 2015 02:19 — forked from altuzar/gist:5876873
Instalar OpenERP 7 en Linux CentOS 6
#!/bin/sh
# Install OpenERP 7 on Digital Ocean
# Fernando Altuzar
# Modified script from Carlos E. Fonseca Zorrilla & Mario Gielissen
# First: Create a Droplet with CentOS 32 bits
# Then:
yum -y install wget unzip
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh http://yum.pgrpms.org/9.2/redhat/rhel-6-i386/pgdg-centos92-9.2-6.noarch.rpm
@pablomp
pablomp / Select2-JSON
Created November 13, 2013 11:17
Combo Select2 con valores dinámicos desde un JSON
$j('#e1').select2({
placeholder: "Seleccione municipio",
allowClear: true,
ajax: {
url: '/vct/json/jsonMunicipios.php',
dataType: 'json',
data: function (term) {
return {
term: term
};
@pablomp
pablomp / SFTP-Filezilla.md
Last active May 4, 2024 16:03
Utilización de FileZilla para SFTP utilizando fichero de claves (Windows)
@pablomp
pablomp / GIT - Undo.md
Created March 11, 2014 08:10
Dar marcha atrás en el último commit de GIT (undo)

Para volver al commit anterior (hacer un UNDO):

git reset --hard HEAD^

@pablomp
pablomp / gist:237ee367e4a0ac060ed83d3d40e2285a
Created August 8, 2017 07:06
Build GCC-7.1.0 on CentOS 7
sudo yum install libmpc-devel mpfr-devel gmp-devel
cd ~/Downloads
curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-7.1.0/gcc-7.1.0.tar.bz2 -O
tar xvfj gcc-7.1.0.tar.bz2
cd gcc-7.1.0
./configure --disable-multilib --enable-languages=c,c++
make -j 4
make install