Skip to content

Instantly share code, notes, and snippets.

@TimothyZhang023
TimothyZhang023 / gist:2cb36ed6c841a4ee322156931d5faca6
Created December 3, 2023 11:07
K3 multi guest SSID with vlan
#!/bin/sh
robocfg vlan 1 ports "0 1 2 3 5 7 8t"
robocfg vlan 99 ports "3t 8t"
vconfig add eth0 99
ifconfig vlan99 up
brctl delif br0 wl1.2
brctl addbr br1
brctl addif br1 vlan99
brctl addif br1 wl1.2
[custom]
;不要随意改变关键字,否则会导致出错
;acl4SSR规则-在线更新版
;去广告:支持
;自动测速:支持
;微软分流:支持
;苹果分流:支持
;增强中国IP段:不支持
;增强国外GFW:不支持
@TimothyZhang023
TimothyZhang023 / config.sh
Created January 11, 2021 12:45 — forked from muzea/config.sh
init shell
case "$1" in
'install')
apt update
apt install git curl zsh vim htop -y
chsh -s $(which zsh)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
;;
'docker')
apt-get update
apt-get install \
@TimothyZhang023
TimothyZhang023 / app-unbind-partner.txt
Last active August 27, 2020 08:53
app-unbind-partner
app-unbind-partner
出现这个错误码 通常是 应用没有绑定 商家账号(PID)导致的
对外应用绑定文档
普通应用 https://opendocs.alipay.com/open/00r5uy
三方应用 https://opendocs.alipay.com/open/00x77p
@TimothyZhang023
TimothyZhang023 / private.xml
Last active May 26, 2020 08:17 — forked from giaosudau/private.xml
Karabiner for M545
<?xml version="1.0"?>
<root>
<item>
<name>Logitech M545 Mouse</name>
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
@TimothyZhang023
TimothyZhang023 / Build.smali
Created February 19, 2019 10:08
Patch-Miui-EU-EST-10.2.1/framework/smali/android/os/Build.smali
.class public Landroid/os/Build;
.super Ljava/lang/Object;
.source "Build.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroid/os/Build$VERSION;,
Landroid/os/Build$VERSION_CODES;
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
02-23 17:29:38.957 16734 16734 D Condom::pushservice: IActivityManager.removeContentProvider[android.os.BinderProxy@8fcf881, false]
02-23 17:29:38.960 16734 19996 D XMPushService Bridge: onHandleIntent -> A application want to register push
02-23 17:29:38.961 16734 19996 W XMPushService Bridge: Don't register multi request com.tencent.news
02-23 17:29:38.962 16734 19996 D Condom::pushservice: IPackageManager.getApplicationInfo[com.tencent.news, 0, 0]
02-23 17:29:38.966 16734 19996 D Condom::pushservice: IPackageManager.resolveContentProvider[top.trumeet.mipush.providers.AppProvider, 8192, 0]
02-23 17:29:38.967 1730 3307 I ActivityManager: START u0 {cmp=com.tencent.news/.ui.PushDetailActivity (has extras)} from uid 10093 pid 32605
02-23 17:29:38.968 16734 19996 D Condom::pushservice: IActivityManager.getContentProvider[android.app.ActivityThread$ApplicationThread@15a236, top.trumeet.mipush.providers.AppProvider, 0, fal
se]
02-23 17:29:38.994 16734 19996 D Condom::pushservice: IActivityManager.refContentProv