Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View tejastank's full-sized avatar

Tejas Tank tejastank

View GitHub Profile
@tejastank
tejastank / check.py
Created August 7, 2022 06:46 — forked from kepsic/check.py
#!/usr/bin/env python3
"""
DESCRIPTION
Email checker
INSTALL
sudo apt-get install python3-pip
pip3 install validate_email
pip3 install py3DNS
chmod 755 check.py
./check.py --validate kepsicsassasaa@hot.ee --debug
@tejastank
tejastank / python.whatsapp.facebook.py
Created August 6, 2022 05:12
Well tested and implemented software via official whtsapp API
import requests
import json
url = "https://graph.facebook.com/v13.0/101878115921874/messages"
payload = json.dumps({
"messaging_product": "whatsapp",
"to": "918733067278",
"type": "template",
"template": {
import cv2
import imutils
import numpy as np
import pytesseract
from PIL import Image
pytesseract.pytesseract.tesseract_cmd = 'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe'
path = r'C:\Program Files (x86)\Tesseract-OCR\7.jpg'
# Using cv2.imread() method
img = cv2.imread(path)
127.0.0.1 2975c.v.fwmrm.net
127.0.0.1 2mdn.net
127.0.0.1 ad.doubleclick.net
127.0.0.1 ad-g.doubleclick.net
127.0.0.1 ad.mo.doubleclick.net
127.0.0.1 ads.doubleclick.net
127.0.0.1 adservice.google.com
127.0.0.1 ads.youtube.com
127.0.0.1 ad.youtube.com
127.0.0.1 analytic-google.com
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response>
<responseMetadata>
<httpCode>200</httpCode>
<errorType>Ok</errorType>
<description>Success</description>
<cappingApplied>No</cappingApplied>
<cappingLimit>1000</cappingLimit>
<queryString>SettlementDate=2019-12-31,Period=2</queryString>
</responseMetadata>
@tejastank
tejastank / raspberrypi.camera.txt
Created January 30, 2022 07:16
working with raspberry pi camera NOIR camera v2, tejaskumar tank
vcgencmd get_camera
supported=0 detected=0
note: because of depricated legacy, even camera present. just enable i2c and disable basic camera support from raspi-config.
that's it.
as well at location /boot/config.txt
nano /boot/config.txt, edit parameter dtoverlay
@tejastank
tejastank / odoo15.install.script.sh
Last active January 10, 2022 13:33
odoo 15 install script
#!/bin/bash
################################################################################
# Script for installing odoo15 on Ubuntu 16.04, 18.04 and 20.04 (could be used for other version too)
# Author: Yenthe Van Ginneken
#-------------------------------------------------------------------------------
# This script will install odoo15 on your Ubuntu 16.04 server. It can install multiple odoo15 instances
# in one Ubuntu because of the different xmlrpc_ports
#-------------------------------------------------------------------------------
# Make a new file:
# sudo nano odoo15-install.sh
@tejastank
tejastank / learning.md
Created December 8, 2021 05:48 — forked from 0-vortex/learning.md
Some interesting machine learning and artificial intelligence paper demos
@tejastank
tejastank / gcp.py
Created October 21, 2021 09:54 — forked from leviathan747/gcp.py
Python script for submitting Google Cloud Print jobs from macOS native print dialog using PDF Services.
#!/usr/local/bin/python3
# This script can be used to submit Google Cloud Print jobs from the PDF services menu in macOS
#
# Prerequisites:
# - Python 3.x
# - oauth2client installed
#
# Setup instructions:
# 1. Clone this gist into a directory called ".gcp" in your home directory. Assure