Skip to content

Instantly share code, notes, and snippets.

View leoleoasd's full-sized avatar
🥰
slackin'

Yuxuan Lu leoleoasd

🥰
slackin'
View GitHub Profile
@leoleoasd
leoleoasd / bjut_login.sh
Created January 11, 2020 06:53
校园网登录, 支持IPV6.
#!/usr/bin/env bash
# Read username & password from stdin
# Suited for public computers where credentials are not saved
read -p 'username: ' user
read -p 'password: ' -s pwd
echo
DATE=`date '+%Y-%m-%d %H:%M:%S'`
@leoleoasd
leoleoasd / shuake.py
Created January 15, 2020 06:05
新生安全教育刷课脚本
#--coding:utf-8--
import requests
import time
userProjectId = ''
tenantCode = ''
userId = ''
token = ''
resp = requests.post("https://weiban.mycourse.cn/pharos/usercourse/listCourse.do?timestamp={}".format(int(time.time())),
data={
@leoleoasd
leoleoasd / main.go
Last active May 5, 2020 08:03
TurnipQueueBot
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"os"
"os/signal"
"strconv"
@leoleoasd
leoleoasd / hooks.go
Last active April 8, 2022 19:16
Simple hooks system in golang.
package main
import (
"fmt"
"reflect"
)
var hooks = map[string][]interface{}{}
func addHook(hook_name string, hook interface{}) {
@leoleoasd
leoleoasd / My recent activities
Last active December 22, 2020 00:41
My recent activities
🗣 Commented on #1 in OI-wiki/OI-Wiki-export
❗️ Opened issue #1 in OI-wiki/OI-Wiki-export
💪 Opened PR #2838 in OI-wiki/OI-wiki
💪 Opened PR #2837 in OI-wiki/OI-wiki
💪 Opened PR #2836 in OI-wiki/OI-wiki
@leoleoasd
leoleoasd / I'm a night 🦉
Last active October 28, 2020 00:42
My productive times
🌞 早上 64 commits ██▌░░░░░░░░░░░░░░░░░░ 11.9%
🌆 白天 151 commits █████▉░░░░░░░░░░░░░░░ 28.2%
🌃 晚上 243 commits █████████▌░░░░░░░░░░░ 45.3%
🌙 深夜 78 commits ███░░░░░░░░░░░░░░░░░░ 14.6%
@leoleoasd
leoleoasd / keybase.md
Last active February 27, 2021 15:40
keybase.md

Keybase proof

I hereby claim:

  • I am leoleoasd on github.
  • I am leoleoasd (https://keybase.io/leoleoasd) on keybase.
  • I have a public key whose fingerprint is E138 B5E9 6541 EFF7 DCD4 5FC2 69F7 C86A 3D67 3AEA

To claim this, I am signing this object:

@leoleoasd
leoleoasd / 课表.js
Created November 15, 2020 03:49
正方课表到 ics
const DEFAULT_VERSION = "2.0";
const DEFAULT_PRODID = "-//TypeScript/Node.js//SCAU Course Exporter v1.0//CN";
const CRLF = "\r\n";
const SPACE = " ";
const iframe = document.querySelector("#iframeautoheight");
const PAGE = {
"main": /xs_main.aspx/,
"course_table": /xskbcx.aspx/
};
class Value {
@leoleoasd
leoleoasd / ketangpai.js
Last active November 23, 2020 13:47
课堂派增强
// ==UserScript==
// @name 课堂派快捷键
// @namespace http://leoleoasd.me/
// @version 0.1
// @description 给课堂派的判作业界面增加快捷键.
// @author Leo
// @match https://www.ketangpai.com/Review/file/homeworkid/*
// @grant none
// ==/UserScript==
/*
@leoleoasd
leoleoasd / 教务增强.js
Created December 22, 2020 07:04
正方教务系统👎
// ==UserScript==
// @name 工大教务管理密码自动输入
// @namespace http://leoleoasd.me/
// @version 1.0
// @description Fuck ZFJW!
// @author You
// @match https://jwglxt.bjut.edu.cn/xtgl/login_slogin.html
// @grant none
// @run-at document-start
// ==/UserScript==