This gist is now deprecated and moved to janlay/openai-cloudflare. Stay tuned!
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
/*** | |
* Clash Verge Rev 全局扩展脚本(懒人配置)/ Mihomo Party 覆写脚本 | |
* URL: https://gist.github.com/dahaha-365/0b8beb613f8d1ee656fe1f21e1a07959 | |
*/ | |
/** | |
* 整个脚本的总开关,在Mihomo Party使用的话,请保持为true | |
* true = 启用 | |
* false = 禁用 | |
*/ |
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
# huggingface login | |
from huggingface_hub import login | |
login() | |
# load textencorder in 8bit quantized | |
from transformers import T5EncoderModel | |
from diffusers import DiffusionPipeline | |
import datetime |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# /etc/nginx/.github.test.com.htpasswd | |
# htpasswd -nb user password | |
# PLEASE USE YOUR OWN PASSWORD | |
user:$apr1$zv2GRYuf$vknySgxsj3DfOav6cdRCv. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# 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() | |
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
// 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. |
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/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 |
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
/* | |
EMBY THEME : piflix | |
# Table of Contents | |
1. ACCENT COLORS | |
1.1 Buttons | |
1.1.1 Checkboxes | |
1.1.2 Rectangles | |
1.1.3 Links & Text buttons |
NewerOlder