Skip to content

Instantly share code, notes, and snippets.

View yurytello's full-sized avatar

Yury Oscar Tello Canchapoma yurytello

View GitHub Profile
@yurytello
yurytello / git_reset
Created July 2, 2014 11:42
reset commits
RESET REMOTE COOMITS
====================
git checkout 7.0
git log
git reset --hard <commit-hash>
git push -f origin 7.0
RESET LOCAL TO SYNC REMOTE
==========================
git checkout 7.0
@yurytello
yurytello / python setup.py upload
Last active August 29, 2015 14:05
pypi upload a new release
To upload a new release of python library on Pypy.python.org, follow the next steps:
1. update the setup.py file with the new release
...
setup(name='openerp-client-etl',
version='1.1.1',
...
2. update the PKG-INFO file with the new release
...
@yurytello
yurytello / python setup.py register
Created August 27, 2014 20:09
Register a New Project on Pypi
To register a new project on Pypi.python.org, follow the next commands:
$ python setup.py register
@yurytello
yurytello / git merge
Last active August 29, 2015 14:07
Git merge and conflict resolution and vimdiff2
Comandos GIT
============
git fetch upstream
# En caso exista un nuevo branch
git checkout -b 8.0 upstream/8.0
# Realizamos el merge sin estrategia
git merge upstream/8.0
# Resolvemos los conflictos
git mergetool --tool=vimdiff2 --no-prompt <file>
@yurytello
yurytello / Odoo reset admin pw
Last active March 18, 2022 07:49
Hack to reset the admin password of Odoo
Reset admin Password
1) Obtener el login del administrador
=> select login from res_users where id=1;
2) Verificar que tenga habilitado el parámetro auth_signup_reset_password
=> update base_config_settings set auth_signup_reset_password=true;
# Si NO nay registros entonces insertar un nuevo registro
=> insert into base_config_settings(auth_signup_reset_password) values(true);
3) Crear un token de reset_password para el administrador
=> update res_partner
@yurytello
yurytello / Odoo
Last active March 12, 2017 05:29
1) Gestión de Base de Datos
Path: /web/database/selector
Ejemplo:
http://app.cubicerp.com:20869/web/database/selector
Path: /web/database/manager
Ejemplo:
http://app.cubicerp.com:20869/web/database/manager
@yurytello
yurytello / gist:00286f535f549469a0dbcc4f6d8d3261
Created November 22, 2019 13:42
GitLab - Upgrade, backup and restore
sudo apt upgrade -y
sudo apt install curl openssh-server ca-certificates postfix -y
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce=11.7.5-ce.0
sudo gitlab-ctl reconfigure
sudo apt-get install gitlab-ce=11.11.0-ce.0
sudo gitlab-ctl reconfigure
sudo apt-get install gitlab-ce
vi /etc/gitlab/gitlab.rb