Skip to content

Instantly share code, notes, and snippets.

View iponkan's full-sized avatar
🎯
Focusing

iponkan

🎯
Focusing
View GitHub Profile
[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
@iponkan
iponkan / mobile.conf
Last active September 1, 2023 16:16
mobile
[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
@iponkan
iponkan / win-ss
Created May 6, 2020 06:23 — forked from dreamlu/win-ss
windows终端翻墙,简易方式
环境: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)
@iponkan
iponkan / README.md
Created May 4, 2020 08:51 — forked from chuyik/README.md
macOS 给 Git(Github) 设置代理(HTTP/SSH)
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
@echo off
adb uninstall com.commsource.beautyplus
adb install -r "%~fs1"
pause
# 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
@iponkan
iponkan / index.js
Created October 14, 2019 02:33 — forked from zkat/index.js
npx is cool
#!/usr/bin/env node
console.log('yay gist')
@iponkan
iponkan / .npmrc
Created October 10, 2019 13:17
npm加速
# 注册模块镜像
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 二进制包镜像
@iponkan
iponkan / AccountManager.java
Created September 3, 2019 06:46
嵌套网络请求处理
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) {