Skip to content

Instantly share code, notes, and snippets.

@robbinhan
robbinhan / new_gist_file.css
Last active January 3, 2020 09:00
flex布局左边固定,右边自适应
.demo{
/*flex布局(作用于容器)*/
display: flex;
/*项目拉伸对齐,也就是所左边的高度为拉伸到和右边等高,默认是拉伸的*/
/*align-items: stretch;*/
}
.demo .left{
/*左边固定宽度,必须设置其最小宽度和最大宽度*/
@tony1016
tony1016 / clash
Created June 15, 2019 06:48
Openwrt init.d script for clash
#!/bin/sh /etc/rc.common
START=99
STOP=15
USE_PROCD=1
start_service(){
procd_open_instance clash
procd_set_param command /usr/bin/clash -d /etc/clash
@Yi-Z0
Yi-Z0 / README.md
Last active November 18, 2022 12:42
《docker + clash 旁路由 透明代理 兲朝上网》

食用方法

  1. 开启混杂模式

    ip link set eth0 promisc on

  2. docker创建网络,注意将网段改为你自己的

    docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.1 -o parent=eth0 macnet

  3. 提前准备好正确的clash config , 必须打开redir在7892, 以及dns在53端口

@xqm32
xqm32 / clash-config.yaml
Last active July 26, 2024 02:14
clash config with proxy-providers and rule-providers
##### 使用说明 #####
# 1. 请填写 proxy-providers - subscribe - url 为订阅链接
# 2. 下载 https://github.com/Loyalsoldier/clash-rules/archive/refs/heads/release.zip 并解压至 ./profiles/ruleset 文件夹下
# 3. 若需要自动更新 ruleset, 请编辑 rule-providers-config - type 为 http
##### 参考链接 #####
# 1. clash 样例配置文件
# https://lancellc.gitbook.io/clash/clash-config-file/an-example-configuration-file
# 2. clash 规则集
# https://github.com/Loyalsoldier/clash-rules