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 base64, zlib, re | |
def decrypt(filename): | |
with open(filename, 'rb') as rbf: | |
dat = rbf.read() | |
a = [x^11 for x in dat] | |
b = bytearray(a).decode() | |
c = b.replace('-','+').replace('_','/') |
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 sys, time | |
from PyQt5.QtWidgets import * | |
from threading import Thread | |
class MyWindow(QWidget): | |
def __init__(self): | |
super().__init__() | |
self.tableWidget = QTableWidget(self) | |
self.tableWidget.setColumnCount(2) | |
self.tableWidget.setRowCount(2) |
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 requests | |
wish_id = 1276665214 | |
url2 = 'https://padlet.com/0x5067b10/0' | |
def main(x): | |
url = 'https://padlet.com/api/5/reactions' | |
payload = { | |
'wish_id': wish_id, | |
'value': 1, |
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
def str2bin(string:str): | |
stringe = string.encode() | |
bins = [] | |
for x in stringe: | |
binx = bin(x) | |
binx = binx[2:] | |
binx = binx.zfill(8) | |
bins.append(binx) | |
r = '' |
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 datetime | |
def decorator(func): | |
def wrapper(*args, **kwargs): | |
print(func.__name__, 'starttime', datetime.datetime.now().strftime('%H%M')) | |
ret = func(*args, **kwargs) | |
print(func.__name__, 'endtime', datetime.datetime.now().strftime('%H%M')) | |
return ret | |
return wrapper | |
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
# original code: https://developers.google.com/youtube/v3/docs/videos/update | |
import datetime | |
import sys | |
import httplib2 | |
from apiclient.discovery import build | |
from apiclient.errors import HttpError | |
from oauth2client.client import flow_from_clientsecrets | |
from oauth2client.file import Storage | |
from oauth2client.tools import argparser, run_flow |
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
def stms(s): | |
minute = s//60 | |
second = s%60 | |
minute, second = int(minute), int(second) | |
return f'{minute}:{second:02}' |
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 win32gui, win32con, time | |
server = win32gui.FindWindow(None, 'C:\\WINDOWS\\system32\\cmd.exe') | |
def command(x): | |
for y in x: | |
win32gui.PostMessage(server, win32con.WM_CHAR, ord(y), 0) | |
win32gui.PostMessage(server, win32con.WM_CHAR, 13, 0) | |
while True: |
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
API_KEY = 'INPUT YOUR API KEY' | |
import requests | |
def convertUUID(UUID): | |
igns = requests.get(f'https://api.mojang.com/user/profiles/{UUID}/names').json() | |
return igns[-1]['name'] | |
data = requests.get(f'https://api.hypixel.net/guild?key={API_KEY}&name=zest').json() | |
guildExp = {} | |
guildMembers = data['guild']['members'] |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\notepad] | |
@="*/shell/notepad/Edit with notepad" | |
"Icon"="C:\\Windows\\System32\\notepad.exe" | |
[HKEY_CLASSES_ROOT\*\shell\notepad\command] | |
@="C:\\Windows\\System32\\notepad.exe %1" | |
[HKEY_CLASSES_ROOT\Directory\shell\cmdhere] |