Skip to content

Instantly share code, notes, and snippets.

View FaltoGH's full-sized avatar

FaltoGH

  • Korea
  • 00:31 (UTC +09:00)
View GitHub Profile
@FaltoGH
FaltoGH / extension.reg
Created March 3, 2024 13:54
Windows Registry Extension
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]
@FaltoGH
FaltoGH / gtop.py
Created April 18, 2021 15:03
hypixel zest guild /g top
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']
@FaltoGH
FaltoGH / mcbukkitcontroller.py
Created April 18, 2021 14:59
Control the Minecraft Bukkit with Python!
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:
@FaltoGH
FaltoGH / stms.py
Created April 17, 2021 18:46
Second to Minute:Second!
def stms(s):
minute = s//60
second = s%60
minute, second = int(minute), int(second)
return f'{minute}:{second:02}'
@FaltoGH
FaltoGH / youtube_update.py
Created April 3, 2021 17:55
update title of video using youtube api
# 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
@FaltoGH
FaltoGH / decorator_example.py
Created March 28, 2021 14:41
decorator example
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
@FaltoGH
FaltoGH / str2bin.py
Created March 28, 2021 06:43
String to Binary, Binary to String
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 = ''
@FaltoGH
FaltoGH / padlet_like.py
Last active March 27, 2021 14:48
Padlet Like Control
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,
@FaltoGH
FaltoGH / selecteditems.py
Last active March 28, 2021 06:45
SelectedItems Bug Remove
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)
@FaltoGH
FaltoGH / gdcrypt.py
Last active July 18, 2023 11:25
CCLocalLevels.dat Decrypt
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('_','/')