Skip to content

Instantly share code, notes, and snippets.

View matejmajny's full-sized avatar
👋

Matthew matejmajny

👋
View GitHub Profile
@matejmajny
matejmajny / main.py
Created December 31, 2022 23:53
new year thingy
# overcomplicated but works
from datetime import datetime
from threading import Timer
import pygame, time
x=datetime.today()
y=x.replace(day=x.day, hour=23, minute=58, second=58, microsecond=5)
delta_t=y-x
@matejmajny
matejmajny / videodownloader.py
Last active December 28, 2022 10:48
small tool for downloading stuff to my vps file manager
import os
link = input("Link: ")
os.chdir("/var/www/simple-file-manager/yt-videos")
link = link.split("/")[2]
if link == "www.youtu.be" or link == "www.youtube.com":
os.system("yt-dlp -f 'bestvideo[height<=1080]+bestaudio/best[height<=1080]' -S res,ext:mp4:m4a --recode mp4 " + link)
else:
os.system("wget " + link)
import time
from colorama import *
import string_utils
import random
init()
print("Wallet miner v1.0\n\n")
wallet = input("Enter your BTC wallet adress: ")
print("All tokens will be added to" + wallet)
print("")