$ cp /etc/redis.conf /etc/redis-xxx.conf
$ sudo chown redis:redis /etc/redis-xxx.conf
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
# 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 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
# 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 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 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 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
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) +'-'+ |
Saya support Internet Positif untuk memblokir porn, situs judi, dan hal-hal ilegal lainnya. Tapi pemerintah dan ISP sangat konyol karena tidak mengizinkan akses ke Vimeo, Reddit, Imgur, Netflix--yang mana bukanlah situs dengan konten utama ilegal.
Tambahkan list di bawah ke /etc/hosts
.
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
# Send SMS messages using Raspberry Pi. | |
# Using gammu and Huawei E220 | |
# Prepare SD card with wheezy. | |
# Login / complete rasp-config / reboot / login | |
# Set vimrc to prevent annoying ADBC arrow keys | |
cp /etc/vim/vimrc ~/.vimrc |
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
;; database name = connect string | |
;; | |
;; connect string params: | |
;; dbname= host= port= user= password= | |
;; client_encoding= datestyle= timezone= | |
;; pool_size= connect_query= | |
[databases] | |
odoo1 = host=127.0.0.1 auth_user=odoo dbname=odoo1 port=5432 | |
odoo2 = host=127.0.0.1 auth_user=odoo dbname=odoo2 port=5432 | |
odoo3 = host=127.0.0.1 auth_user=odoo port=5432 dbname=odoo3 |
Hierarchical data metrics that allows fast read operations on tree like structures.
Based on Left and Right fields that are set during tree traversal. When entered into node value is set to it's Left, when exiting node value is set to it's Right.
OlderNewer