- HTTP 形式:
git clone https://github.com/owner/git.git
- SSH 形式:
git clone git@github.com:owner/git.git
This file contains 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
[General] | |
ipv6 = true | |
bypass-system = true | |
dns-server = https://223.5.5.5/dns-query | |
bypass-tun = 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.88.99.0/24, 192.168.0.0/16, 198.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 255.255.255.255/32 | |
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, *.crashlytics.com, *.edu.cn, captive.apple.com | |
[Proxy Group] | |
咸鱼 = select,🇸🇬 新加坡 04,interval=600,timeout=5,select=0,url=http://www.gstatic.com/generate_204 |
This file contains 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
[General] | |
ipv6 = true | |
bypass-system = true | |
dns-server = https://223.5.5.5/dns-query | |
bypass-tun = 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 192.88.99.0/24, 192.168.0.0/16, 198.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0/4, 255.255.255.255/32 | |
skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, *.crashlytics.com, *.edu.cn, captive.apple.com | |
[Proxy Group] | |
咸鱼 = select,🇸🇬 新加坡 04,interval=600,timeout=5,select=0,url=http://www.gstatic.com/generate_204 |
This file contains 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
环境:shadowsocks、windows | |
本地ss端口设置(这里1080) | |
cmd命令行:(不用socks5)(临时设置)(也可放置环境变量) | |
set http_proxy=http://127.0.0.1:1080 | |
set https_proxy=http://127.0.0.1:1080 | |
ps:一定要用cmd命令行,千万别用powershell !!! | |
简易测试命令:curl https://www.google.com(别用ping) |
This file contains 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
const os = require('os'); | |
let ip = '0.0.0.0'; | |
const networkInterfaces = os.networkInterfaces(); | |
out: | |
for (const i in networkInterfaces) { | |
for (const j in networkInterfaces[i]) { | |
const val = networkInterfaces[i][j]; | |
if (val.family === 'IPv4' && val.address !== '127.0.0.1') { | |
ip = val.address; | |
break out |
This file contains 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
@echo off | |
adb uninstall com.commsource.beautyplus | |
adb install -r "%~fs1" | |
pause |
This file contains 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
# gitlab | |
Host gitlab.linphone.org | |
HostName gitlab.linphone.org | |
PreferredAuthentications publickey | |
IdentityFile C:\\Users\lenovo\\.ssh\\id_rsa_gitlab | |
# github | |
Host github.com | |
HostName github.com | |
PreferredAuthentications publickey | |
IdentityFile C:\\Users\\lenovo\\.ssh\\id_rsa |
This file contains 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
#!/usr/bin/env node | |
console.log('yay gist') |
This file contains 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
# 注册模块镜像 | |
registry=https://registry.npm.taobao.org | |
# node-gyp 编译依赖的 node 源码镜像 | |
disturl=https://npm.taobao.org/dist | |
# chromedriver 二进制包镜像 | |
chromedriver_cdnurl=https://cdn.npm.taobao.org/dist/chromedriver | |
# operadriver 二进制包镜像 |
This file contains 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
skyNet.getPublicKey(System.currentTimeMillis()) | |
.compose(RxSchedulers.io_main()) | |
.observeOn(Schedulers.io()) // (新被观察者,同时也是新观察者)切换到IO线程去发起登录请求 | |
// 特别注意:因为flatMap是对初始被观察者作变换,所以对于旧被观察者,它是新观察者,所以通过observeOn切换线程 | |
// 但对于初始观察者,它则是新的被观察者 | |
.flatMap(new Function<PublicKeyBean, ObservableSource<LoginResultBean>>() { // 作变换,即作嵌套网络请求 | |
@Override | |
public ObservableSource<LoginResultBean> apply(PublicKeyBean result) throws Exception { | |
// 将网络请求1转换成网络请求2,即发送网络请求2 | |
if (result != null) { |