Skip to content

Instantly share code, notes, and snippets.

View SuperErnD's full-sized avatar

Дмитрий Комунистов (шутка) SuperErnD

View GitHub Profile
#!/usr/bin/env python
from websockets.sync.client import connect
import threading
from json import loads, dumps
import time
from groq import Groq
ai = Groq(
api_key="groq key"
@SuperErnD
SuperErnD / main.py
Created February 20, 2024 19:09
минимал TFTP сервер на питоне
import socket
import struct
import io
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(("", 2777))
s.setblocking(0)
E_NOTFOUND = b"\x00\x05\x00\x02Not Found\x00"

TODO

  • (partially) API enchantaments
  • Rewrite parts of rendering
  • GUI
  • (partially) Event server
  • Little optimization
  • Server optimization
@SuperErnD
SuperErnD / arbuz_miner.py
Last active February 21, 2024 08:29
майним арбузики скриптом
import requests, time, fake_useragent, math, traceback
calculatehowmanytimetorestore = lambda a, b: a/b
xtgid = input("Input X-Telegram-Init-Data: ")
cpt = input("How many clicks per second time? ")
tim = min(int(input("How many time per one (or more) clicks? (in seconds, for example 1) ")),100)
ua = fake_useragent.UserAgent().random
[17:56:16] [main/INFO]: Loading Minecraft 1.20 with Fabric Loader 0.14.21
[17:56:16] [ForkJoinPool-1-worker-1/WARN]: Mod originblock uses the version 0.1mc1.20PA which isn't compatible with Loader's extended semantic version format (Could not parse version number component '1mc1'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version
[17:56:16] [main/INFO]: Loading 91 mods:
- fabric-api 0.83.0+1.20
|-- fabric-api-base 0.4.29+b04edc7a27
|-- fabric-api-lookup-api-v1 1.6.34+4d8536c927
|-- fabric-biome-api-v1 13.0.10+b3afc78b27
|-- fabric-block-api-v1 1.0.9+e022e5d127
|-- fabric-blockrenderlayer-v1 1.1.39+b3afc78b27
|-- fabric-client-tags-api-v1 1.0.20+b3afc78b27
[10:35:25] [main/INFO]: Loading Minecraft 1.19.3 with Fabric Loader 0.14.12
[10:35:25] [ForkJoinPool-1-worker-2/WARN]: Mod io_netty_netty-codec-http uses the version 4.1.77.Final which isn't compatible with Loader's extended semantic version format (Could not parse version number component 'Final'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version
[10:35:25] [ForkJoinPool-1-worker-2/WARN]: Mod originblock uses the version 0.1a1 which isn't compatible with Loader's extended semantic version format (Could not parse version number component '1a1'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version
[10:35:26] [main/WARN]: Warnings were found!
- Mod 'ViaBackwards' (viabackwards) 4.5.1 recommends any version of viarewind, which is missing!
- You should install any version of viarewind for the optimal experience.
[10:35:26] [main/INFO]: Loading 125 mods:
- adventure-platform-fabric 5.6.0 via tabtps-fabric
- at_favre_lib_bcrypt 0.