Skip to content

Instantly share code, notes, and snippets.

Avatar
😍
Ngantuk

SENJATechno cikupamart

😍
Ngantuk
View GitHub Profile
View Navbar - color specific to each Company
<!-- Note: the ID's of your Company records may not be 1 and 2, so adjust accordingly -->
<!-- Odoo 15 -->
<data inherit_id="web.layout">
<xpath expr="//body" position="inside">
<t t-if="request.httprequest.cookies.get('cids') and request.httprequest.cookies.get('cids')[0] == '1'">
<style>.o_main_navbar {background-color: #57596F!important;border-bottom: 0px;}</style></t>
<t t-if="request.httprequest.cookies.get('cids') and request.httprequest.cookies.get('cids')[0] == '2'">
<style>.o_main_navbar {background-color: #6B3C3C!important;border-bottom: 0px;}</style></t>
View gist:537b5ca75190e6ed1c96f52efec774ae
[options]
#
# WARNING:
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
#-----------------------------------------------------------------------------
# Odoo Server Config File - TurnKey Linux
@cikupamart
cikupamart / migrate_attc.py
Created Oct 4, 2022 — forked from ruiztulio/migrate_attc.py
Simple script for migrating Odoo attachements from database to FS
View migrate_attc.py
# -*- encoding: utf-8 -*-
import time
import base64
import xmlrpclib
import codecs
import os
import sys
import hashlib
######## Inicio de los parametros configurables ############
@cikupamart
cikupamart / wazuh-nmap-autoscan.md
Created Apr 17, 2021 — forked from trangnth/wazuh-nmap-autoscan.md
Wazuh auto scan and alert IP and port with Nmap
View wazuh-nmap-autoscan.md

Cấu hình wazuh - nmap auto scan

Mô tả

  • Cảnh báo mỗi một host mới tham gia hoặc không tham gia vào dải ip được quét
  • Cảnh báo mỗi khi một port bất kỳ của host mở hoặc đóng (thay đổi trạng thái)
  • Thực hiện cấu hình trên wazuh server

Tham khảo