- 颜色:
"black" = "#000000" = "#000" = rgb(0, 0, 0)
- style 优先级:
!important > inline styles > id > class > 声明更前的class
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
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' | |
if empty(glob(data_dir . '/autoload/plug.vim')) | |
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
" Install vim-plug if not found | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
endif |
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
local function pick(rules, count, random_func) | |
random_func = random_func or math.random | |
count = count or 1 | |
local ret = {} | |
local total_weight = 0 | |
for _, v in ipairs(rules) do | |
local weight = v.weight | |
total_weight = total_weight + weight | |
end |
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
# 支持显示特殊字符 | |
# set -g default-terminal "xterm-256color" # 有些情况需要改用这个配置,一般情况下用下面两条 | |
set -g default-terminal "tmux-256color" | |
set -ga terminal-overrides ",xterm-256color:Tc" | |
set -g base-index 1 # 窗口编号从 1 开始计数 | |
set -g display-panes-time 10000 # PREFIX-Q 显示编号的驻留时长,单位 ms | |
set -g mouse on # 开启鼠标 | |
set -g pane-base-index 1 # 窗格编号从 1 开始计数 | |
set -g renumber-windows on # 关掉某个窗口后,编号重排 |
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
parsers: | |
- url: https://feedneo.com/files/6GXRxAYQHJ/clash.yml | |
yaml: | |
prepend-proxy-groups: | |
- name: AI | |
proxies: | |
- x1.0 美西 - 中转1 | |
- x1.0 美西 - 中转2 | |
- x1.0 美西 - 中转3 | |
- x1.0 美西 - 中转4 |
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
# 如果存在目录则清空 | |
test -d $log_dir && rm -rf $log_dir/* | |
# 如果不存在目录则创建 | |
test ! -d $log_dir && mkdir $log_dir | |
# 查看端口占用 | |
netstat -tunlp | grep 端口号 | |
lsof -i:端口号 | |
# 启动脚本至后台,记录pid |