Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/birkhofflee/ntnu_scripts
Some useful scripts that automate our lives
https://github.com/birkhofflee/ntnu_scripts
Last synced: about 2 months ago
JSON representation
Some useful scripts that automate our lives
- Host: GitHub
- URL: https://github.com/birkhofflee/ntnu_scripts
- Owner: BirkhoffLee
- Created: 2020-09-16T15:02:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-09T07:10:51.000Z (over 1 year ago)
- Last Synced: 2024-10-08T11:40:53.229Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 146 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NTNU Scripts
* [course/](course/): 選課系統 sign-in CAPTCHA solving PoC
* [covid-sign-in/](covid-sign-in/):
* 自動防疫簽到(教室門口的 QR Code): [covid-sign-in/index.js](covid-sign-in/index.js)
* Day Pass 自動提交體溫: [covid-sign-in/covid.js](covid-sign-in/covid.js)
* [ntnu-5g-captive-portal/](ntnu-5g-captive-portal/): ntnu-5g captive portal 自動登入 on macOS Monterey
* [scripts/](scripts/):
* [scripts/finalSurvey.mjs](scripts/finalSurvey.mjs): 填寫所有期末問卷
* [scripts/score-monitor-example.mjs](scripts/score-monitor-example.mjs): 檢查並發送成績更新的通知,搭配 cron 使用
* [scripts/ntnu.mjs](scripts/ntnu.mjs): 學校系統 ES7 class,目前有下列。用法參考上述應用
* sign-in via iportal
* sign-in via SSO
* `inquireStdCourse`
* `doCourseFinalSurvey`
* `getCourseScoreList`# 期末問卷填寫
```
$ git clone https://github.com/BirkhoffLee/ntnu_scripts
$ cd ntnu_scripts/scripts
$ npm install
$ node finalSurvey.js 40941234s password
歐洲啟蒙運動中的政治與社會性
{"msg":"已完成,老師可清楚瞭解回饋,謝謝!!","success":true}程式設計(一)
{"msg":"已完成,老師可清楚瞭解回饋,謝謝!!","success":true}計算機概論
{"msg":"已完成,老師可清楚瞭解回饋,謝謝!!","success":true}基礎電子學
{"msg":"已完成,老師可清楚瞭解回饋,謝謝!!","success":true}基礎電子學實驗
{"msg":"已完成,老師可清楚瞭解回饋,謝謝!!","success":true}微積分乙(一)
{"msg":"已完成,老師可清楚瞭解回饋,謝謝!!","success":true}
```# ntnu_5g Captive Portal
在 macOS 連上 SSID 爲 `ntnu_5g` 的 WiFi 之後,自動登入學校網路。
Codebase largely based on https://github.com/rimar/wifi-location-changer.
1. `cd ntnu-5g-captive-portal && cp ntnuwifiautologin.example ntnuwifiautologin `
2. 在 [ntnu-5g-captive-portal/ntnuwifiautologin](ntnu-5g-captive-portal/ntnuwifiautologin) 設定 username/password(NTNU SSO 學號密碼)
3. `./install.sh`
4. `tail -f /usr/local/var/log/ntnuwifiautologin.log`