This file contains hidden or 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 smtplib | |
from email.mime.text import MIMEText | |
# Настройки SMTP | |
SMTP_HOST = "smtp.gmail.com" | |
SMTP_PORT = 587 | |
SMTP_USERNAME = "automail@mail.com" | |
SMTP_PASSWORD = "pasSWORD" | |
SMTP_MAIL_FROM = "automail@mail.com" # От кого (обычно совпадает с SMTP_USERNAME) | |
RECIPIENT = "viewer@gmail.com" # Кому отправить тестовое письмо |
This file contains hidden or 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
from concurrent.futures import ThreadPoolExecutor | |
modules = {"ansible": "2.10.4", "requests": "2.25.1"} | |
class Tester(object): | |
def __init__(self, module, reqversion): | |
self.module = module | |
self.reqversion = reqversion |
This file contains hidden or 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 shlex | |
import subprocess | |
from concurrent.futures import ThreadPoolExecutor | |
import sys | |
try: | |
ip_pool = sys.argv[1] | |
except: | |
ip_pool = '192.168.1.' |
This file contains hidden or 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
## root@365k3791:~# export PB_TOKEN=qwe123; python3 get.py 10.8.0.7 | |
from time import sleep | |
import os, sys | |
from pushbullet import Pushbullet | |
import shlex, subprocess | |
import requests | |
try: | |
host = sys.argv[1] | |
except IndexError: |
This file contains hidden or 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
#---------------------------------------------------------------- | |
# This script allows you to save the history of entering bash commands, and transfer this history to zsh. | |
# Now you can see your story in a new environment. | |
# | |
# Usage: python3 bash_import_to_zsh.py | |
# | |
# Author: https://github.com/suicidesky92 | |
# Find out if a new version is available: https://gist.github.com/suicidesky92/1731f894bd279d27b12225c8360db45f#file-bash_import_to_zsh-py | |
#---------------------------------------------------------------- |