-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproxy.txt
More file actions
61 lines (45 loc) · 2.13 KB
/
Copy pathproxy.txt
File metadata and controls
61 lines (45 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
sudo vim /etc/apt/apt.conf
sudo gedit /etc/apt/apt.conf
Acquire::http::proxy "http://10.22.96.29:8080/";
Acquire::https::proxy "http://10.22.96.29:8080/";
Acquire::ftp::proxy "http://10.22.96.29:8080/";
Acquire::socks::proxy "http://10.22.96.29:8080/";
proxy1.bj.petrochina
conda config --set proxy_servers.http http://10.22.96.29:8080
conda config --set proxy_servers.https http://10.22.96.29:8080
weget
export http_proxy=http://10.22.96.29:8080
export https_proxy=http://10.22.96.29:8080
export http_proxy=http://127.0.0.1:9990
export https_proxy=http://127.0.0.1:9990
http_proxy=http://10.22.96.29:8080/
https_proxy=http://10.22.96.29:8080/
ftp_proxy=http://10.22.96.29:8080/
socks=http://10.22.96.29:8080/
export ALL_PROXY=socks5://127.0.0.1:1080
proxy_servers:
http_proxy=http://10.22.96.29:8080/
https_proxy=http://10.22.96.29:8080/
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
- defaults
show_channel_urls: True
allow_other_channels: True
proxy_servers:
http_proxy=http://10.22.96.29:8080/
https_proxy=http://10.22.96.29:8080/
ssl_verify: False
## chrome proxy
google-chrome --proxy-server="http://127.0.0.1:17897" \
--proxy-bypass-list="127.0.0.1,localhost,10.0.0.0/8;172.16.0.0/12;192.168.0.0/16"
# SOCKS:
# google-chrome --proxy-server="socks5://127.0.0.1:17890" \
# --host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE localhost"
## 一键开关(可选,放到 ~/.proxyrc 并在 ~/.bashrc 里 source ~/.proxyrc)
proxy_on_http(){ export http_proxy=http://127.0.0.1:17897 https_proxy=$http_proxy \
HTTP_PROXY=$http_proxy HTTPS_PROXY=$http_proxy \
no_proxy="127.0.0.1,localhost,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16" NO_PROXY="$no_proxy"; echo "[proxy] HTTP ON"; }
proxy_on_socks(){ export all_proxy=socks5h://127.0.0.1:17890 ALL_PROXY=$all_proxy; proxy_on_http; echo "[proxy] SOCKS ON"; }
proxy_off(){ unset http_proxy https_proxy all_proxy HTTP_PROXY HTTPS_PROXY ALL_PROXY; export NO_PROXY="127.0.0.1,localhost"; echo "[proxy] OFF"; }