Skip to content

Instantly share code, notes, and snippets.

@Bnux256
Bnux256 / httpServ.py
Created January 9, 2022 07:10
Simple HTTP GET Server - Python
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:
@Bnux256
Bnux256 / textEditor.py
Created November 5, 2021 15:41
Simple text editor made using Tkinter
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)
@Bnux256
Bnux256 / passwordGenerator.py
Created August 12, 2021 11:48
Python Password Generator
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)
@Bnux256
Bnux256 / Crostini.md
Last active December 26, 2023 09:04
Chromebook Crostini Python Development Setup

Chromebook Crostini Python Development Setup

Updating the Debian container

sudo apt update
sudo apt dist-upgrade

Installing Nano

sudo apt install nano

Installing Python

sudo apt-get install python3 python3-dev python3-pip\

@Bnux256
Bnux256 / audioFixesPopOS20.10.sh
Last active July 30, 2021 15:23
Fixing the "Dummy Output" audio output error on Ubuntu 20.04/20.10
# 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