Skip to content

Instantly share code, notes, and snippets.

View dockercore's full-sized avatar
🎯
专注中

Cloud native dockercore

🎯
专注中
View GitHub Profile
@dockercore
dockercore / fill_form.js
Created November 30, 2023 06:54 — forked from noobnooc/fill_form.js
12306 自动填表单
/* 要买票的乘客的索引号,购票页面乘客所在的位置 -1 */
let passengers = [3, 6, 7, 12, 13];
/* 座位类型 */
let seatType = '硬卧';
let passengerSeatTypes = Array.from(passengers.keys()).map(index => index + 1);
let seatTypeMap = new Map([['硬座', 1], ['软座', 2], ['硬卧', 3], ['软卧', 4]]);
@dockercore
dockercore / cloudflare-worker-proxy.js
Created November 30, 2023 04:42 — forked from noobnooc/cloudflare-worker-proxy.js
cloudflare-worker-proxy
// Website you intended to retrieve for users.
const upstream = 'api.openai.com'
// Custom pathname for the upstream website.
const upstream_path = '/'
// Website you intended to retrieve for users using mobile devices.
const upstream_mobile = upstream
// Countries and regions where you wish to suspend your service.