Skip to content

Instantly share code, notes, and snippets.

View cubercsl's full-sized avatar
🤔
Fishing

cubercsl cubercsl

🤔
Fishing
View GitHub Profile
@cubercsl
cubercsl / pta-ranking-status.user.js
Created April 26, 2026 04:25
PTA Rankings - 显示真实评测结果
// ==UserScript==
// @name PTA Rankings - 显示真实评测结果
// @version 0.1.0
// @description PTA 外榜的「提交」面板会把所有非 AC 结果统一显示为 WA。本脚本读取 React 组件 props 中的真实状态,并把它替换为 TL / RE / ML / OL / CE 等正确缩写。
// @author cubercsl
// @match https://pintia.cn/rankings/*
// @run-at document-idle
// @grant none
// @license MIT
// ==/UserScript==
[
{
"id": 120,
"name": {
"zh": "山东科技大学",
"en": "Shandong University of Science and Technology"
},
"country": "CN"
},
{
#!/bin/bash -e
VERSION=8.2.3
SRC_DIR=/domjudge-src
if [ $EUID -ne 0 ]; then
echo "This script must be run as root"
exit 1
fi
@cubercsl
cubercsl / scoreboard.py
Created May 27, 2024 14:18
DOMJudge Scoreboard
import sys
import json
import csv
import dj_utils
def problems_info(problems):
def problem_info(p):
if p['solved']:
@cubercsl
cubercsl / config.json
Last active October 1, 2025 15:06
Useful domjudge scripts
{
"adminer_enabled": false,
"allow_team_submission_download": 1,
"auth_methods": [
"ipaddress"
],
"check_new_version": "none",
"clar_answers": [
"No comment.",
"Read the problem statement carefully."
@cubercsl
cubercsl / connect-internet
Last active February 5, 2023 14:29
ECNU Connect Internet CLI
#!/bin/bash
# Connect ECNU Internet via command line
# Author: cubercsl <2014cais01 at gmail dot com>
# Licensed under Do What The F*ck You Want To Public License (WTFPL)
set -eo pipefail
usage() {
echo "connect-internet [-f file | username [password]]"