This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # ========================================== | |
| # Configuration Section | |
| # ========================================== | |
| # Local LAN IP (Used as the port forwarding target) | |
| LOCAL_IP="192.168.0.250" | |
| # Interface connected to the upstream router (used for SSDP discovery) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Campusmate Message Downloader | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0 | |
| // @description Add buttons to download messages as Markdown files on Campusmate portal. | |
| // @author Misaka13514 | |
| // @match *://portal.isi-camj.com/campusweb/* | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Tailscale Machines Sort | |
| // @namespace https://gist.github.com/Misaka13514/e249a1e1e4b0a75d8df59f67d43bb239 | |
| // @version 1.0 | |
| // @description Add sorting functionality to the Tailscale machines list | |
| // @author Misaka13514 | |
| // @match https://login.tailscale.com/admin/machines | |
| // @icon https://tailscale.com/favicon.png | |
| // @downloadURL https://gist.github.com/Misaka13514/e249a1e1e4b0a75d8df59f67d43bb239/raw/589658740d460dfc15a7168b2d4f90f6daa7307e/tailscale-machines-sort.user.js | |
| // @grant none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name 智慧树直播课全自动挂机助手 | |
| // @namespace https://gist.github.com/Misaka13514/4ddeb179c2ff6c218aa56f3fc7cc1a96 | |
| // @version 2.0 | |
| // @description 从学生主页自动发现直播课并进入,自动关闭引导及设备检测弹窗,自动签到,自动点击防溜号弹窗 | |
| // @author Misaka13514 | |
| // @match *://hike-living.zhihuishu.com/* | |
| // @match *://onlineweb.zhihuishu.com/onlinestuh5* | |
| // @icon https://assets.zhihuishu.com/icon/favicon.ico?v=20210605 | |
| // @downloadURL https://gist.github.com/Misaka13514/4ddeb179c2ff6c218aa56f3fc7cc1a96/raw/hike-living.zhihuishu.user.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| addEventListener('fetch', event => event.respondWith(handleRequest(event.request))); | |
| // Add environment variable `TGBOT_TOKEN` via Worker-Settings | |
| async function requestTelegramBotAPI(method, payload) { | |
| return fetch(`https://api.telegram.org/bot${TGBOT_TOKEN}/${method}`, { | |
| method: "POST", | |
| headers: { | |
| "Content-Type": "application/json; charset=utf-8" | |
| }, | |
| body: !payload ? undefined : JSON.stringify(payload) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "since_id": [ | |
| "1462379926682693632", | |
| "1462369243735883779", | |
| "1462357691741786113", | |
| "1462343691754872833", | |
| "1462298785686511616", | |
| "1462284638857007107", | |
| "1462255847615045636", | |
| "1462245188558995457", |