Skip to content

Instantly share code, notes, and snippets.

@acgnhiki
acgnhiki / bili_api_reverse_proxy.py
Created February 19, 2023 07:27
a simple bilibili live api reverse proxy
"""
PREREQUISITES:
pip install httpx fastapi uvicorn
USAGE:
uvicorn bili_api_reverse_proxy:app --no-server-header --no-date-header
uvicorn bili_api_reverse_proxy:app --host 0.0.0.0 --port 52233 --no-server-header --no-date-header
TEST:
curl 'http://localhost:52233/xlive/web-room/v2/index/getRoomPlayInfo?room_id=23058&protocol=0,1&format=0,1,2&codec=0,1&qn=0&platform=web&ptype=8&dolby=5&panorama=1' \
@acgnhiki
acgnhiki / proxy.md
Created November 30, 2021 02:20 — forked from yougg/proxy.md
complete ways to set http/socks/ssh proxy environment variables

set http or socks proxy environment variables

# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT

# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT

# set http proxy with user and password (with special characters)
@acgnhiki
acgnhiki / GitConfigHttpProxy.md
Created October 28, 2021 02:37 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@acgnhiki
acgnhiki / GitConfigHttpProxy.md
Created October 28, 2021 02:37 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@acgnhiki
acgnhiki / LICENCE SUBLIME TEXT
Created July 4, 2019 08:45
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----