Skip to content

Instantly share code, notes, and snippets.

View test482's full-sized avatar

Eliot test482

  • China
  • 17:33 (UTC +08:00)
View GitHub Profile
@test482
test482 / accounts.json
Created May 17, 2024 11:42
PrismLauncher account bypass
{
"accounts": [
{
"active": true,
"entitlement": {
"canPlayMinecraft": true,
"ownsMinecraft": true
},
"profile": {
"capes": [],
@test482
test482 / reverse-proxy-worker.js
Last active April 14, 2024 08:07
Cloudflare workers for reverse proxy website
// Website you intended to retrieve for users.
const upstream = '###WebsiteURL###'
// Custom pathname for the upstream website.
const upstream_path = '/'
// Website you intended to retrieve for users using mobile devices.
const upstream_mobile = '###WebsiteURL###'
// Countries and regions where you wish to suspend your service.
@test482
test482 / Dockerfile
Last active April 19, 2024 16:34
vlmcsd usage
FROM alpine:latest as builder
WORKDIR /root
RUN apk add --no-cache git make build-base && \
git clone --branch master --single-branch https://github.com/Wind4/vlmcsd.git && \
cd vlmcsd/ && \
make
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /root/vlmcsd/bin/vlmcsd /usr/bin/vlmcsd
@test482
test482 / autoexec.cfg
Created February 3, 2024 02:41
Apex Legends bind shift to walk
// -fullscreen -dev -high -novid -freq 144 +exec autoexec -eac_launcher_settings SettingsDX12.json
// Steam\steamapps\common\Apex Legends\cfg\autoexec.cfg
// SHIFT WALK: Allows you to hold shift to walk while auto-sprint is turned on.
// NOTE: "+variableScopeToggle" is added so you can still adjust your zoom while in ADS.
bind_US_standard "LSHIFT" "+walk; +variableScopeToggle" 0
player_setting_autosprint "1"
@test482
test482 / clash-meta-config.yaml
Last active August 9, 2025 03:40
Clash Meta config
# Meta JSON Schema: A linter and snippet provider for Clash.Meta(mihomo) configuration.
log-level: info
external-controller: 127.0.0.1:9090
# external-ui: /usr/share/metacubexd/
# secret: "在此修改访问令牌"
mode: rule
mixed-port: 7890
allow-lan: false
@test482
test482 / paser.yaml
Last active June 19, 2024 08:00
Clash For Windows
# https://gist.github.com/FDUZS/fd75c1d08baf2f7985cf34f58371cda5
parsers:
# - url: https://example.com/profile.yaml # 指定订阅
- reg: ^.*$ # 匹配所有订阅
# - reg: ^https://sub\.example\.com/.+$ # 正则匹配域名
# 删除服务商提供的策略组和规则
code: |
module.exports.parse = (raw, { yaml }) => {
const rawObj = yaml.parse(raw)
const groups = []
@test482
test482 / chat.sh
Created March 17, 2023 08:38
five line code set up a chat demo, pretty funny
#!/bin/bash
# Copyright 2013 Jeroen Janssens
# All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# Run a simple chat server: websocketd --devconsole --port 8080 ./chat.sh
#
# Please note that this example requires GNU tail, which is not the default
var (
regexpTaobao = regexp.MustCompile(`¥([\w\s]+)¥`)
regexpURL = regexp.MustCompile(`(?:http|https|www)(?:[\s\.:\/\/]{1,})([\w%+:\s\/\.?=]{1,})`)
regexpWhitelist = regexp.MustCompile(`((acg|im9|bili|gov).*(com|html|cn|tv)|(av\d{8,}|AV\d{8,}))`)
regexpQQ = regexp.MustCompile(`(?:[加qQ企鹅号码\s]{2,}|[群号]{1,})(?:[\x{4e00}-\x{9eff}]*)(?:[:,:]?)([\d\s]{6,})`)
regexpWechat = regexp.MustCompile(`(?:[加+微++➕薇?vV威卫星♥❤姓xX信]{2,}|weixin|weix)(?:[,❤️.\s]?)(?:[\x{4e00}-\x{9eff}]?)(?:[:,:]?)([\w\s]{6,})`)
)
@test482
test482 / gzipped FileDescriptorProto
Last active April 25, 2019 11:55
164 bytes of a gzipped FileDescriptorProto (take from bilibili-go-common-master)
func init() { proto.RegisterFile("error.proto", fileDescriptor_error_28aad86a4e53115b) }
var fileDescriptor_error_28aad86a4e53115b = []byte{
// 164 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x34, 0x8d, 0xc1, 0xca, 0x82, 0x40,
0x14, 0x85, 0x99, 0x5f, 0xfc, 0xcb, 0x71, 0x37, 0xb4, 0xd0, 0x36, 0x49, 0x2b, 0x57, 0x23, 0xe4,
0x13, 0x44, 0xb5, 0x6c, 0xe3, 0x0b, 0x88, 0xe6, 0x49, 0x02, 0xf3, 0xc6, 0xd1, 0x20, 0xdf, 0x3e,
0x1c, 0x69, 0x79, 0xcf, 0xf7, 0x71, 0x3f, 0x1d, 0x82, 0x14, 0xda, 0x17, 0x65, 0x14, 0xe3, 0x81,
0xdc, 0xc6, 0xad, 0x48, 0xdb, 0x21, 0x73, 0x53, 0xfd, 0xbe, 0x67, 0x55, 0x3f, 0x2d, 0x7c, 0xff,
0xd1, 0xfe, 0x65, 0xd6, 0x4d, 0xac, 0xd7, 0x20, 0xcb, 0x9b, 0x34, 0x88, 0x54, 0xa2, 0x52, 0xbf,