Skip to content

Instantly share code, notes, and snippets.

View GabbasovDinar's full-sized avatar
🚫
...

Dinar GabbasovDinar

🚫
...
View GitHub Profile
@GabbasovDinar
GabbasovDinar / fix-travis.sh
Last active December 1, 2016 07:06 — forked from yelizariev/fix-travis.sh
Script to fix lint travis errors on odoo
# перейти в каталог с модулем
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
@GabbasovDinar
GabbasovDinar / tmt20ii_status.php
Created December 18, 2018 09:02 — forked from defacto133/tmt20ii_status.php
Get TM-T20II Epson ASB status through UDP socket
/*
* $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)
* }
@GabbasovDinar
GabbasovDinar / odoo.conf
Created April 22, 2019 10:16 — forked from ryanc-me/odoo.conf
Sample Odoo/Nginx Config (with dbfilter_from_header support)
# 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/