sudo apt update
sudo apt dist-upgrade
sudo apt install nano
sudo apt-get install python3 python3-dev python3-pip
\
import socket | |
import os | |
import mimetypes | |
import sys | |
import pathlib # using pathlib to create a universal object that can be used in unix or windows alike | |
HOST = '127.0.0.1' | |
PORT = 8888 | |
class HTTPServ: |
from tkinter import * | |
from tkinter import ttk | |
from tkinter.filedialog import askopenfile, asksaveasfilename | |
class Text_Editor(object): | |
def __init__(self, master): | |
frame = Frame(master) | |
frame.pack() | |
menubar = Menu(tk) | |
filemenu = Menu(menubar, tearoff=0) |
import random | |
import string | |
length = int(input("What length do you want your password? ")) | |
characters = string.ascii_letters + string.punctuation + string.digits | |
password = "" | |
charList = random.sample(characters, length) | |
for x in range(len(charList)): | |
password += charList[x] | |
print(password) |
# In order to fix the "Dummy Output" Error we will reset PulseAudio | |
# restarting PulseAudio deamon | |
systemctl --user restart pulseaudio | |
# removing the user configuration files for PulseAudio | |
rm -r ~/.config/pulse | |
# killing all instances of PulseAudio | |
pulseaudio -k |