Skip to content

Instantly share code, notes, and snippets.

@anhvutuan
anhvutuan / odoo.enterprise.license.issue.py
Last active November 9, 2024 21:56 — forked from tejastank/odoo.enterprise.license.issue.py
Fix ODOO License, due to ODOO support failed temporary quick fix
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# add to host file
# 127.0.0.1 odoo.com
# 127.0.0.1 ipa.odoo.com
# 127.0.0.1 *.odoo.com
#
# run in odoo/tools
import datetime
@anhvutuan
anhvutuan / opcache.ini
Created April 14, 2023 06:22 — forked from rohankhudedev/opcache.ini
Best Zend OpCache Settings / Tuning / Configurations
[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=1
; The OPcache shared memory storage size.
opcache.memory_consumption=512
@anhvutuan
anhvutuan / calculate_apache_mpm_config.sh
Created December 21, 2022 03:09 — forked from Josh5/calculate_apache_mpm_config.sh
A rough calculation of Apache MPM config
#!/bin/bash
#
# @Author: Josh Sunnex
# @Date: 2019-01-31 10:26:00
# @Last Modified by: josh5
# @Last Modified time: 2019-01-31 10:36:07
#
# usage:
# curl -sSL https://gist.githubusercontent.com/Josh5/ff6ccfe4c75ae27a3f1efebcb645e7c4/raw/calculate_apache_mpm_config.sh | bash -s [PID]
#
@anhvutuan
anhvutuan / compile-haproxy.sh
Created October 25, 2022 07:42 — forked from meanevo/compile-haproxy.sh
Compile HAProxy from source on CentOS 7
# Make sure you have these installed
yum install -y make gcc perl pcre-devel zlib-devel
# Download/Extract source
wget -O /tmp/haproxy.tgz http://www.haproxy.org/download/1.7/src/haproxy-1.7.2.tar.gz
tar -zxvf /tmp/haproxy.tgz -C /tmp
cd /tmp/haproxy-*
# Compile HAProxy
# https://github.com/haproxy/haproxy/blob/master/README
make \
TARGET=linux2628 USE_LINUX_TPROXY=1 USE_ZLIB=1 USE_REGPARM=1 USE_PCRE=1 USE_PCRE_JIT=1 \