Skip to content

Instantly share code, notes, and snippets.

View eitozx's full-sized avatar
❄️
Open to Work!

Eito eitozx

❄️
Open to Work!
View GitHub Profile
@eitozx
eitozx / stack.py
Created June 10, 2022 13:57
Push, Pop & Display Operations for Stack
stack = []
top = None if stack == [] else len(stack) - 1
def push(stack, element):
stack.append(element)
global top
top = len(stack) - 1
return stack # optional
def pop(stack):
@eitozx
eitozx / .env
Created October 25, 2022 04:06
Basic setup that I personally use for discord authentication.
CLIENT_ID =
AUTH_URL =
CLIENT_SECRET =
REDIRECT_URI =
@eitozx
eitozx / christmasTree.py
Created January 20, 2024 12:06
Christmas Tree (idk really lol)
def branch(num : int, f : int):
return f'{" " * f}{"*" * num}*{"*" * num}'
def christmas(f):
e = None
for i in range(f):
print(branch(i,f-i))
if e is None:
e = branch(i+1, f-i-1)
print(e, e, sep='\n')
sudo apt update
sudo apt install nginx
sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com