Skip to content

Instantly share code, notes, and snippets.

View tejastank's full-sized avatar

Tejas Tank tejastank

  • India
  • 01:53 (UTC +05:30)
View GitHub Profile
@tejastank
tejastank / odoo.enterprise.license.issue.py
Last active January 17, 2026 09:58
tejaskumartank@proton.me , Fix ODOO License 15,16,17,18,19, due to ODOO support failed temporary quick fix ,
# -*- coding: utf-8 -*-
# tejaskumartank@proton.me
# ODOO Enterprise Edition
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import datetime
import logging
import requests
import werkzeug.urls
@tejastank
tejastank / Python-Exploit-Server.py
Created November 6, 2012 06:38
Python Exploit Server
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import socket
import cPickle
class ExploitServer():
def run(self):
HOST = '127.0.0.1'
PORT = 8080
@tejastank
tejastank / odoo-worker.sh
Last active August 22, 2025 09:43
ODOO worker Calculator. Estimate number of memory and workers can be used. In case NGINX and Postgresql performance count then at final use some less workers to take breathing for other resources
#!/bin/bash
# CONST 1GB
CONST_1GB="1024*1024*1024"
# VARIABLE WORKERS
CMD_W=0
@tejastank
tejastank / odoo-enterprise-install-custom.sh
Last active August 3, 2025 17:00
Once install community odoo 16, then you can run this to install enterprise edition
#!/bin/bash
################################################################################
# Author: Tejaskumar Tank
#-------------------------------------------------------------------------------
# This script will install Odoo on your Ubuntu server. It can install multiple Odoo instances
# in one Ubuntu because of the different xmlrpc_ports
#-------------------------------------------------------------------------------
# Make a new file:
# sudo nano odoo-install.sh
# Place this content in it and then make the file executable:
@tejastank
tejastank / default.vcl_PREFACE.md
Created August 6, 2021 05:20 — forked from fevangelou/default.vcl_PREFACE.md
The perfect Varnish configuration for Joomla, WordPress & other CMS based websites

The perfect Varnish configuration for Joomla, WordPress & other CMS based websites

IMPORTANT: Read this before implementing one of the configuration files below (for either Varnish 3.x or 4.x+).

USE: Replace the contents of the main Varnish configuration file located in /etc/varnish/default.vcl (root server access required - obviously) with the contents of the configuration you'll use (depending on your Varnish version) from the 2 examples provided below.

IMPORTANT: The following setup assumes a 180 sec (3 minute) cache time for cacheable content that does not have the correct cache-control HTTP headers. You can safely increase this to 300 sec (or more) for less busier sites or drop it to 60 sec or even 30 sec for high traffic sites.

This configuration requires an HTTP Header and a user cookie to identify if a user is logged in a site, in order to bypass caching overall (see how it's done for Joomla & WordPress). If your CMS provides a way to add these two requirements, then you can use this configurati

@tejastank
tejastank / python.voice.recognition.py
Created January 15, 2021 05:21
Python Voice Recognition.
import speech_recognition as sr
import pyttsx3
import pywhatkit
import datetime
import wikipedia
import pyjokes
listener = sr.Recognizer()
engine = pyttsx3.init()
voices = engine.getProperty('voices')
@tejastank
tejastank / fix.wkhtmltopdf.odoo.snippetbucket.erp.open.source.seo.sh
Last active November 1, 2024 13:31
Wkhtmltopdf failed (error code: -6). Message: The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt, and will be ignored.QXcbConnection: Could not connect to display. # https:/…
# https://www.snippetbucket.com/
# ODOO ERP Django PHP Android AngularJS implementation and customization.
# Most Simple and Quick Way:
sudo su
cd /opt
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
mv wkhtmltox/bin/wkhtmlto* /usr/bin/
@tejastank
tejastank / clear.all.logs.linux.sh
Created August 24, 2024 11:46
Clear all logs /var/logs linux #xamtainfotech #tejaskumartank
for CLEAN in $(find /var/log/ -type f)
do
cp /dev/null $CLEAN
done
#best way to just clear, sometime delete may crash some software
#pip install opencv-python dlib facenet-pytorch
#xamta infotech, guidelins to install dependancies. hi@xamta.in
import cv2
import dlib
from facenet_pytorch import MTCNN
import numpy as np
def detect_tongue(image_path):
# Load the image
@tejastank
tejastank / tongue.xamta.in.py
Created December 28, 2023 07:18
tongue detection, recognisation
import cv2
import dlib
# Load the pre-trained facial landmark predictor from dlib
predictor_path = "shape_predictor_68_face_landmarks.dat"
predictor = dlib.shape_predictor(predictor_path)
# Load the pre-trained face detector from dlib
face_detector = dlib.get_frontal_face_detector()