Skip to content

Instantly share code, notes, and snippets.

View Zxilly's full-sized avatar
🌐
R.I.P

Zxilly

🌐
R.I.P
View GitHub Profile
import socket
import argparse
def main(server_ip, server_port):
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as server_socket:
server_socket.bind((server_ip, server_port))
print(f"Server is listening on {server_ip}:{server_port}")
while True:
data, client_address = server_socket.recvfrom(10000)
@Zxilly
Zxilly / index.ts
Created March 28, 2024 12:09
wrangler bug
import { Router } from '@tsndr/cloudflare-worker-router';
import { md5 } from 'js-md5';
export interface Env {
IMG_BUCKET: R2Bucket;
}
const router = new Router<Env>();
@Zxilly
Zxilly / archive.key
Created October 24, 2023 06:51
Xanmod key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQENBFhxW04BCAC61HuxBVf1XJiQjXu/DSAtVcnuK38geDoDjcqFtHskFy32NgJG
X118EFNym6noF+oibaSftI9yjHthWvMnYZ/+DPwd7YZhbAjBvxMIQCsP6cFVxrgc
VV8g+uh4TCfbpalDBFoncRhQCgkmDN9Vd4kIWRh6BHJuzpKB/h2KxUHZVEKgWlK2
dR1xUtbrc+kp8gLwPbxTgC3tZ4x2uMMMlnbyCMSRa5oJ/AvoW4W1XphKL9ivsFHM
PSQkUBDvgv2RPw+0XBxPy8SYE0r0onx0ZIpjJRTODt3bSV6/0owwlpNogV9bT8HY
kl3+w3mTwax6S1akHZuJtLkZS0uUBz1BHt5bABEBAAG0IVhhbk1vZCBLZXJuZWwg
PGtlcm5lbEB4YW5tb2Qub3JnPokBNwQTAQgAIQUCWHFbTgIbAwULCQgHAgYVCAkK
import subprocess
import uuid
import uvicorn
from fastapi import FastAPI, UploadFile, File
from fastapi.middleware.cors import CORSMiddleware
app = FastAPI()
app.add_middleware(
@Zxilly
Zxilly / gsoc-2021.md
Last active November 24, 2021 07:03
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Zxilly//JGSUCalender//CN
X-WR-CALNAME:2020-2021-2 考试
X-WR-TIMEZONE:Asia/Shanghai
BEGIN:VTIMEZONE
TZID:Asia/Shanghai
BEGIN:STANDARD
TZNAME:CST
TZOFFSETFROM:+0800
TypeScript 4 hrs 58 mins ██████████████░░░░░░░ 67.2%
Go 1 hr 11 mins ███▎░░░░░░░░░░░░░░░░░ 16.0%
SCSS 15 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.4%
CSS 15 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.4%
YAML 11 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.6%
@Zxilly
Zxilly / jgsu-web.sh
Created November 29, 2020 13:52
Fxxk JGSU Web Auth (井冈山大学校园网登陆脚本)
#!/bin/sh
studentid='' # 用户名
password='' # 密码
IP=$(ubus call network.interface.wan status | grep \"address\" | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')
# IP="10.73.26.189"
UA="FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
function login() {
#!/bin/sh
curl 'https://www.baidu.com/s?ie=UTF-8&wd=curl%20useragent' \
-H 'Connection: keep-alive' \
-H 'Pragma: no-cache' \
-H 'Cache-Control: no-cache' \
-H 'Upgrade-Insecure-Requests: 1' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36 Edg/85.0.564.51' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
-H 'Sec-Fetch-Site: same-origin' \
-H 'Sec-Fetch-Mode: navigate' \