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
# the needed libraries | |
import time | |
from datetime import datetime as dt | |
# the host path | |
host_temp = r"C:\Users\<username>\folderName\Host File\hosts" # make a copy of the host file from the line below and replace this url string | |
host_path = r"C:\Windows\System32\drivers\etc\hosts" # The path to the original host file | |
redirect = "127.0.0.1" | |
website_list = [ | |
# add as many websites as you want |
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 PIL.Image | |
ASCII_CHAR = ["@", "#", "S", "%", "?", "*", "+", ";", ":", ",", "."] | |
def resize_image(image, new_width=100): | |
width, height = image.size | |
ratio = height / width | |
new_height = int(new_width * ratio) | |
resized_image = image.resize((new_width, new_height)) |
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
# importing subprocess | |
import subprocess | |
# getting meta data | |
meta_data = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']) | |
# decoding meta data | |
data = meta_data.decode('utf-8', errors ="backslashreplace") | |
# splitting data by line by line |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.