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
# перейти в каталог с модулем | |
cd MODULE_PATH | |
# fix line break symbols | |
find * -type f | grep -v ".\(svg\|png\|jpg\)$" | xargs sed -i 's/\r//g' | |
# trim trailing whitespaces | |
find * -type f | grep -v ".\(svg\|png\|jpg\)$" | xargs sed -i 's/[ \t]*$//g' | |
# установить autopep8 |
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
/* | |
* $status = { | |
* "status": "online" | "offline", | |
* "cover": "open" | "closed", (opt) | |
* "feeding": "feeding" | "not", (opt) | |
* "autocutterError": "error" | "not", (opt) | |
* "unrecoverableError": "error" | "not", (opt) | |
* "recoverableError": "error" | "not", (opt) | |
* "paper": "paperEnd" | "paperPresent" (opt) | |
* } |
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
# Author: Ryan Cole | |
# Website: https://ryanc.me | |
# GitHub: https://github.com/MGinshe | |
# Usage: | |
# Place this file in /etc/nginx/sites-enabled/ | |
# Make sure you edit the DOMAIN_HERE and SSL_CERTIFICATE, and DB_FILTER sections | |
# | |
# Note: This config file is designed to be used with the Odoo dbfilter_from_header module | |
# https://apps.openerp.com/apps/modules/9.0/dbfilter_from_header/ |