Skip to content

Instantly share code, notes, and snippets.

View RebornQ's full-sized avatar
👨‍💻
Working from Company

Reborn RebornQ

👨‍💻
Working from Company
View GitHub Profile
@meooxx
meooxx / 宇宙内都好用的clash配置.yaml
Last active November 24, 2025 14:42
clash 配置模版, 内置多策略分组(精选emoji)+去广告+最新链式代理模版配置, 最大优势则是支持同时添加分组多个订阅源, 且真正意义上的防治dns泄漏,具体说明https://github.com/meooxx/blog/issues/31
# 1 只需要修改 proxy-providers, 将订阅配置到 provider1 这样的分组里面, 添加一个自定义后缀, 用于防止同一个机场下不同协议,
# 节点名称却相同导致的覆盖. 同一机场下如 trojan 订阅和 vless 订阅 节点名称相同, 此时不加后缀, 会被覆盖
# 同理添加第二, 第三个订阅只需复制 provider1, 修改为 provider2 和其对应 url 和 additional-suffix 字段
# 2 支持自建节点, 可将自建节点链接添加到 myown, url中, myown 名字最好不要更改, 或者同时修改引用的地方如 chainProxy
# 3 另外注释了一个链式代理配置, 可按需配配. 思路是将需要链式代理的订阅单独配置一个 provider, 然后在分组那里使用 use 字段获取该分组下节点, 并使用 override
# 添加 dialer-proxy 字段
# 4 修改完成后, 在clash 客户端导入该配置
@dahaha-365
dahaha-365 / lazy_script.js
Last active December 11, 2025 08:27
Clash Verge Rev 全局扩展脚本(懒人脚本配置)
/***
* Clash Verge Rev 全局扩展脚本(懒人配置)/ Mihomo Party 覆写脚本
* URL: https://gist.github.com/dahaha-365/0b8beb613f8d1ee656fe1f21e1a07959
*/
/**
* 整个脚本的总开关,在Mihomo Party使用的话,请保持为true
* true = 启用
* false = 禁用
*/
@Stella2211
Stella2211 / DeepFloyd_IF_VRAM12GB.py
Last active January 17, 2024 03:59
DeepFloyd IF for around 12GB of VRAM
# huggingface login
from huggingface_hub import login
login()
# load textencorder in 8bit quantized
from transformers import T5EncoderModel
from diffusers import DiffusionPipeline
import datetime
@ninehills
ninehills / chatglm-openai-api.ipynb
Last active April 16, 2024 01:15
chatglm-openai-api.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alswl
alswl / .github.test.com.htpasswd
Last active March 28, 2023 06:55
Simple proxy on Nginx for Github(and Github user content)
# /etc/nginx/.github.test.com.htpasswd
# htpasswd -nb user password
# PLEASE USE YOUR OWN PASSWORD
user:$apr1$zv2GRYuf$vknySgxsj3DfOav6cdRCv.
@ninehills
ninehills / chatpdf-zh.ipynb
Last active December 11, 2025 09:56
ChatPDF-zh.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# STEP 1: Load
# Load documents using LangChain's DocumentLoaders
# This is from https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/csv.html
from langchain.document_loaders.csv_loader import CSVLoader
loader = CSVLoader(file_path='./example_data/mlb_teams_2012.csv')
data = loader.load()
@janlay
janlay / README.md
Last active April 16, 2023 16:27
OpenAPI Proxy for Cloudflare Workers
@noobnooc
noobnooc / cloudflare-worker-proxy.js
Last active November 24, 2025 12:45
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.
@bookfere
bookfere / fix-google-translate-cn.sh
Last active June 2, 2025 08:06
Fix Google Translate CN for macOS
#!/bin/bash
# Copyright (c)2022 https://bookfere.com
# This is a batch script for fixing Google Translate and making it available
# in the Chinese mainland. If you experience any problem, visit the page below:
# https://bookfere.com/post/1020.html
set -e
IPS=(
74.125.137.90