Skip to content

Instantly share code, notes, and snippets.

View ppa-odoo's full-sized avatar
🎯
Focusing

Prashant Panchal ppa-odoo

🎯
Focusing
View GitHub Profile
import xmlrpclib
HOST = 'localhost'
PORT = 8069
DB = 'DATABASE_NAME'
USER = 'admin'
PASS = 'admin'
ROOT = 'http://%s:%d/xmlrpc/' % (HOST,PORT)
# 1. Login
uid = xmlrpclib.ServerProxy(ROOT + 'common').login(DB,USER,PASS)
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash -
sudo apt-get install -y nodejs
sudo npm install -g npm (to update npm)
ln -s /usr/bin/nodejs /usr/bin/node
sudo npm install -g less less-plugin-clean-css
* Complete uninstall of nodejs and npm
DO: apt-get autoremove --purge nodejs npm