Skip to content

Instantly share code, notes, and snippets.

View cubercsl's full-sized avatar
🤔
Fishing

cubercsl cubercsl

🤔
Fishing
View GitHub Profile
[
{
"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 December 28, 2024 11:06
Useful domjudge scripts
{
"allow_team_submission_download": true,
"auth_methods": [
"ipaddress"
],
"clar_answers": [
"No comment.",
"Read the problem statement carefully."
],
"clar_categories": {
@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]]"