Clash

linux 使用 clash GUI

clash_for_windows_linux

说明: clash windows 项目组开发的 linux 版本

参考:

安装包:

安装方法:

  • 解压缩后,执行 ./cfw

Tap 模式

 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
mixin:
  dns:
    enable: true
    enhanced-mode: redir-host # 或 fake-ip
    listen: 0.0.0.0:53
    nameserver:
      - 223.5.5.5
  interface-name: 以太网# 物理网卡名称




mixin:
  interface-name: 以太网
  dns:
    enable: true
    enhanced-mode: redir-host
    listen: 0.0.0.0:53
    nameserver:
      - https://doh.dns.sb/dns-query
      - https://dns.adguard.com/dns-query

mixin:
  interface-name: 以太网 # 物理网卡名称
  dns:
    enable: true
    enhanced-mode: fake-ip
    listen: 0.0.0.0:53
    nameserver:
      - 223.5.5.5
    fake-ip-filter:
      - 'dns.msftncsi.com'
      - 'www.msftncsi.com'
      - 'www.msftconnecttest.com'

mixin:
  dns:
    enable: true
    enhanced-mode: redir-host # 或 fake-ip
    listen: 0.0.0.0:53
    nameserver:
      - 223.5.5.5
    interface-name: InnerWeb # 物理网卡名称

clash service

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
[Unit]
Description=Clash Backend
After=network.target

[Service]
ExecStart=/home/sawyer/bin/clash -d /home/sawyer/.config/clash
ExecStop=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartPreventExitStatus=255
Type=simple
Restart=on-failure

[Install]
WantedBy=multi-user.target
  • archlinux 路径

Chemistry

名词

保留时间

  • 色谱,专业名词
  • retension time
  • 百科
  • 解释

    • 从进样到波峰的时间

      • 即,在色谱柱中停留的时间
  • 相关名词

    • 校正保留时间

      • 即减去空气的保留时间
    • 相对保留时间

Cython Notes

教程

编译单个文件

  1. 制作 setup.py

    1
    2
    3
    4
    5
    6
    
    from setuptools import setup
    from Cython.Build import cythonize
    
    setup(
        ext_modules = cythonize("helloworld.pyx")
    )
    • 这里假设我们要处理的脚本是 helloworld.pyx
  2. 命令行执行

    1
    
    python setup.py build_ext --inplace

直接使用 .pyx 模块

  • 需要添加的代码