README is empty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## References ## | |
| # https://gorails.com/setup/ubuntu/14.10 | |
| # https://rvm.io/rvm/install | |
| # https://rvm.io/integration/bundler#cd-hook | |
| # https://github.com/mitchellh/vagrant/wiki/Installing-Vagrant-from-source | |
| # http://gillesfabio.com/blog/2011/03/01/rvm-for-pythonistas-virtualenv-for-rubyists/ | |
| #Import public key for server | |
| gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
| #Install RVM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT RCSC.ID, RCSC.NAME,MD.NAME,RCSC.state_id | |
| FROM IR_MODEL_DATA AS MD | |
| JOIN res_country_state_city AS RCSC ON RCSC.ID=MD.RES_ID | |
| WHERE MODULE='l10n_mx_cities' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #If you need debug you variables send to python code | |
| #then modify openerp/tools/safe_eval.py | |
| #You need add opcodes for print statement in _SAFE_OPCODES variable | |
| _SAFE_OPCODES = _EXPR_OPCODES.union(set(opmap[x] for x in [ | |
| 'LOAD_NAME', 'CALL_FUNCTION', 'COMPARE_OP', 'LOAD_ATTR', | |
| 'STORE_NAME', 'GET_ITER', 'FOR_ITER', 'LIST_APPEND', 'DELETE_NAME', | |
| 'JUMP_FORWARD', 'JUMP_IF_TRUE', 'JUMP_IF_FALSE', 'JUMP_ABSOLUTE', | |
| 'MAKE_FUNCTION', 'SLICE+0', 'SLICE+1', 'SLICE+2', 'SLICE+3', | |
| # New in Python 2.7 - http://bugs.python.org/issue4715 : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -name "*.pyc" -exec rm '{}' ';' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Edit /etc/mysql/my.cnf | |
| Change | |
| #bind-address = 127.0.0.1 | |
| For | |
| bind-address = 0.0.0.0 | |
| Log into mysql | |
| mysql -u root -p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Enviroment variables | |
| MOZ_OMTC_ENABLED="1" | |
| MOZ_USE_OMTC="1" | |
| Firefox settings | |
| webgl.force-enabled=true | |
| webgl.msaa-force=true | |
| layers.acceleration.force-enabled=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.contrib.sites.models import Site as SiteOld | |
| class Site(SiteOld): | |
| """Site only have a one Costumer/Shop.""" | |
| costumer = models.OneToOneField('Costumer', verbose_name='customer') | |
| def __init__(self, *args, **kwargs): | |
| """ | |
| Overrided __init__. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Edit next systemd service files. | |
| On | |
| /usr/lib64/systemd/system/rpc-mountd.service | |
| edit ExecStart | |
| ExecStart=/usr/sbin/rpc.mountd -F -p 32767 | |
| On | |
| /usr/lib64/systemd/system/rpc-statd.service | |
| edit ExecStart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To log sql statements in openerp you append --log-level=debug_sql in command line |