Skip to content

Instantly share code, notes, and snippets.

View cikupamart's full-sized avatar
😍
Ngantuk

SENJATechno cikupamart

😍
Ngantuk
View GitHub Profile
<!-- 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>
[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 October 4, 2022 09:52 — forked from ruiztulio/migrate_attc.py
Simple script for migrating Odoo attachements from database to FS
# -*- 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 April 17, 2021 15:33 — forked from trangnth/wazuh-nmap-autoscan.md
Wazuh auto scan and alert IP and port with Nmap

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