Skip to content

Instantly share code, notes, and snippets.

View creg-server.py
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 / .config
Last active Jan 11, 2022
Zxilly Server Kernel Conf
View .config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.16.0 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (Ubuntu 11.1.0-1ubuntu1~21.04) 11.1.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=110100
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23601
View gsoc-2021.md
View exam.ics
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
View 📊 Weekly development breakdown
Jupyter 4 hrs 14 mins ██████████▌░░░░░░░░░░ 50.5%
Python 2 hrs 50 mins ███████░░░░░░░░░░░░░░ 33.8%
Docker 40 mins █▋░░░░░░░░░░░░░░░░░░░ 8.1%
GitIgno... 14 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.9%
YAML 10 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.1%
View exam.ics
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
@Zxilly
Zxilly / jgsu-web.sh
Created Nov 29, 2020
Fxxk JGSU Web Auth (井冈山大学校园网登陆脚本)
View jgsu-web.sh
#!/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() {
View drcom.sh
#!/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' \