Skip to content

Instantly share code, notes, and snippets.

View iledarn's full-sized avatar

Ildar iledarn

  • Philippines
View GitHub Profile
@iledarn
iledarn / movemodule.sh
Created January 11, 2016 12:54
Bash script for copying folders from git repo A to git repo B with history
#!/bin/bash
source_repo=$PWD
echo $source_repo
if [ -n "$1" ]
then
module=$1
echo $module
else
@iledarn
iledarn / instruction.rst
Last active April 18, 2018 02:24
instruction about replicated odoo

Here you may see about bi-directional replication we have used http://2ndquadrant.com/en/resources/bdr/

We use here 64bit ubuntu 14.04 with docker to demonstrate our replication solution. First we need to install docker .

sudo su
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list

/openerp/addons/base/base.sql

4: SET LOCAL default_sequenceam = 'bdr';

upstream app_server {
   server 127.0.0.1:8069 fail_timeout=0;
}

server {
   listen 80;
   listen [::]:80 default ipv6only=on;
   add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
Use instruction in the following order:
1. postgresql_9.4_install_bdr_extension.rst
2. prepare_databases_for_odoo.rst
3. prepare_odoo.rst
4. ir_attachment_force_storage_module.rst
@iledarn
iledarn / odoo-sh.py
Created January 10, 2017 09:04 — forked from dreispt/odoo-sh.py
Odoo Shell: run Odoo commands without a server RPC connection
"""
Setup:
Assuming Odoo 8.0 sources at ~/odoo:
$ cp odoo-sh.py ~/odoo
$ cd ~/odoo
$ python -i odoo-sh.py
Usage example:
>>> env = connect('my-db-name')
>>> Users = env['res.users']
#
su
# ivann + general
mkdir /root/.ssh
curl --silent https://github.com/yelizariev.keys | xargs echo -n >> /root/.ssh/authorized_keys
echo -ne " [email protected]\n" >> /root/.ssh/authorized_keys
sed -i 's/PermitRootLogin no/PermitRootLogin without-password # changed by Ivan Yelizariev from value "no"/' /etc/ssh/sshd_config
@iledarn
iledarn / nginx_odoo.conf
Last active May 10, 2017 15:21 — forked from yelizariev/nginx_odoo.conf
How to deploy SaaS Demo
server {
listen 80;
#rewrite ^/.*$ https://$host$request_uri? permanent; #Uncomment this line in case you want to use https only
server_name NGINX_SERVER_DOMAIN;
include odoo_params;
location /longpolling {
proxy_pass http://SERVER_HOST:8072;
}
docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db-insurance postgres:9.5

docker run \
-e ODOO_MASTER_PASS=admin \
-v /home/ildar/10/addons-dev-insurance:/mnt/addons/it-projects-llc/misc-addons \
-p 12069:8069 \
-p 12072:8072 \
--name insurance \
@iledarn
iledarn / steps.md
Created January 8, 2018 12:11 — forked from ntfc/steps.md
arch linux installation steps