This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
from validators import validate_email | |
class ValidatorsTestCase(unittest.TestCase): | |
def test_validate_email(self): | |
# Bu format kesinlikle doğru. | |
self.assertTrue(validate_email('[email protected]')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 [email protected] --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
url = "https://graph.facebook.com/v13.0/101878115921874/messages" | |
payload = json.dumps({ | |
"messaging_product": "whatsapp", | |
"to": "918733067278", | |
"type": "template", | |
"template": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
A painfully obsessive cheat sheet to favicon sizes/types. Compiled from: