$ cp /etc/redis.conf /etc/redis-xxx.conf
$ sudo chown redis:redis /etc/redis-xxx.conf
This file contains 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
# Enable request logging in Odoo using one of the following: | |
# * pass --log-level=debug_rpc | |
# * or pass --log-handler=odoo.http.rpc.request:DEBUG (to only debug request times) | |
# * or set the equivalent config option in the Odoo config file | |
# Then save the following as a munin plugin to monitor the last 5 minutes of your Odoo config file | |
# Be sure to set the correct path for the Odoo log file, and adjust the variables as needed | |
#!/bin/bash |
This file contains 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
# Setup an appropriate nginx log_format in the `http` section of your nginx config: | |
log_format main '$remote_addr $time_iso8601 "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' | |
'"$http_host" ' | |
'"$http_user_agent" "$http_x_forwarded_for" ' | |
'$request_time '; | |
# Then save the following as a munin plugin to monitor the last 5 minutes of your nginx access.log file |
This file contains 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 sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy import create_engine | |
from sqlalchemy import Column, Integer, String | |
from sqlalchemy.orm import sessionmaker | |
from sqlalchemy import ForeignKey | |
from sqlalchemy.orm import relationship, backref | |
from kivy.graphics import Rectangle | |
from kivy.uix.boxlayout import BoxLayout | |
from kivy.uix.label import Label | |
from kivy.uix.widget import Widget |
This file contains 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
diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js | |
index 9b222f1..4492457 100644 | |
--- a/addons/point_of_sale/static/src/js/models.js | |
+++ b/addons/point_of_sale/static/src/js/models.js | |
@@ -1889,7 +1889,8 @@ exports.Order = Backbone.Model.extend({ | |
} | |
return zero_pad(this.pos.pos_session.id,5) +'-'+ | |
zero_pad(this.pos.pos_session.login_number,3) +'-'+ | |
- zero_pad(this.sequence_number,4); | |
+ zero_pad(this.sequence_number, 4) +'-'+ |
This file contains 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
[options] | |
addons_path = /Users/daniel/odoo10/odooc/odoo/addons,/Users/daniel/odoo10/addons10 | |
admin_passwd = admin | |
csv_internal_sep = , | |
data_dir = /Users/odoo/Odoo | |
db_host = localhost | |
db_maxconn = 64 | |
db_password = openerp |
This file contains 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
# ----------------------------- | |
# PostgreSQL configuration file | |
# ----------------------------- | |
# | |
# This file consists of lines of the form: | |
# | |
# name = value | |
# | |
# (The "=" is optional.) Whitespace may be used. Comments are introduced with | |
# "#" anywhere on a line. The complete list of parameter names and allowed |
This file contains 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
#!/bin/bash | |
# sesuaikan dengan lokasi folder PG masing-masing | |
PGDATA=/var/lib/postgresql/9.5/main | |
pid=`head -1 $PGDATA/postmaster.pid` | |
echo "Pid: $pid" | |
peak=`grep ^VmPeak /proc/$pid/status | awk '{ print $2 }'` | |
echo "VmPeak: $peak kB" | |
hps=`grep ^Hugepagesize /proc/meminfo | awk '{ print $2 }'` | |
echo "Hugepagesize: $hps kB" | |
hp=$((peak/hps)) |
OlderNewer