This file contains 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
const fs = require('fs'), | |
crypto = require('crypto'); | |
function loadKey(file) { | |
return fs.readFileSync(file, 'utf8'); | |
} | |
let | |
prvKey = loadKey('./privateKey.pem'), | |
pubKey = loadKey('./publicKey.pem'), |
This file contains 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 ezcard-helper | |
// @namespace http://tampermonkey.net/ | |
// @version 2024.07.01 | |
// @description 懂的都懂 | |
// @author Oschangkai | |
// @match https://ezweb.easycard.com.tw/Event01/JCBLoginServlet | |
// @match https://ezweb.easycard.com.tw/Event01/JCBLoginRecordServlet | |
// @grant none | |
// ==/UserScript== |
This file contains 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
python -Bc "import pathlib; [p.unlink() for p in pathlib.Path('.').rglob('*.py[co]')]" | |
python -Bc "import pathlib; [p.rmdir() for p in pathlib.Path('.').rglob('__pycache__')]" | |
# ref: https://stackoverflow.com/questions/28991015/python3-project-remove-pycache-folders-and-pyc-files |
This file contains 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
## Set these variables to Azure DevOps Pipeline ## | |
# subscriptionId, resourceGroupName, serverName | |
### TASK: Create Firewall Rule ### | |
# Pick variables | |
subscriptionId=$(subscriptionId) | |
resourceGroupName=$(resourceGroupName) | |
serverName=$(serverName) |
This file contains 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
// https://www.cocservice.top/update/ | |
var pricePos = 7; // 王 = 7 | |
var timePos = 8; // 王 = 8 | |
var hostLevelPos = 9; // 王 = 9 | |
var table = document.getElementsByClassName('mdui-table mdui-table-hoverable less-padding-table table-text-center update-data')[0]; | |
var head = Array.from(table.children[0].children[0].children); | |
var data = Array.from(table.children[1].children); |
This file contains 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
ENV_FILE=apitable.env | |
IMAGE_PULL_POLICY=always | |
IMAGE_REGISTRY=ghcr.io/oschangkai | |
IMAGE_BACKEND_SERVER=apitable/backend-server:latest | |
IMAGE_GATEWAY=apitable/openresty:latest | |
IMAGE_INIT_DB=apitable/init-db:latest | |
IMAGE_ROOM_SERVER=apitable/room-server:latest | |
IMAGE_WEB_SERVER=apitable/web-server:latest |