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
{ | |
"$help": "https://aka.ms/terminal-documentation", | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "copy", | |
"singleLine": false |
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
// ==UserScript== | |
// @name BiliBili-EasyCopy | |
// @name:zh-CN BiliBili-去文本复制水印 | |
// @namespace https://github.com/TitanRGB | |
// @version 1.0 | |
// @description 去掉B站专栏中复制文本时的水印。 | |
// @description:zh-CN 去掉B站专栏中复制文本时的水印。 | |
// @author https://github.com/TitanRGB | |
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IB2cksfwAAAAlwSFlzAAAuIwAALiMBeKU/dgAABNtJREFUeJztlnlMVFcUxhG7UbvFpklTpUu6N8WhjaVNSGMT29Ta1KXVdEkXm2pLzWgpiKFCBBvbEA3GVKUbslkGlFFsLViL2AHBsKYigiKFKTAL21RnYQZlOf3O4z15PN8bBvpvX/JLhnfPPd937zn3PoKC/n80HorNZG4Fj4BwoHMn5N2bdsQSMt2c+np6BhwFbpANZqkJs2gMaAKjgJj+JCPtLrISJo2AivhK3+Ipii8C3YBk7FCK60A6cEnCjGXrz5T2q4XW140KExMrBqhxx3ELxtaA4EmEg8ECcFohzpjk4vOBRb7qobgcqtldTkllbmHC5zXDtKvYRrYvCyVzg0APZmiIzwCvA5uK+BWwRhKfBRrkq3Ym5pPR0DwcWz3Ek/9KqPD2Ve05OeqLzyV5HPC1pRSt0DDwArCoiF8Gm8BMycC7UsLRDVnUnlLE9W75rHbkIwQ9CkILf2qch7GdiHFKsSOIrfvGRIknPb0cpxB/CDSoiPvA+qviooEsTujZZKCy76s4YRsCwoGyR0LAW8DDsQV5zUJZxMSl4AZR/Eaxy5XivJsbuDT |
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
vim.opt.runtimepath:prepend("~/.vim") | |
-- 禁用 netrw,避免与 nvim-tree 冲突 | |
vim.g.loaded_netrw = 1 | |
vim.g.loaded_netrwPlugin = 1 | |
-- 插件管理 | |
vim.cmd([[ | |
call plug#begin('~/.vim/plugged') | |
Plug 'neovim/nvim-lspconfig' |
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 wezterm = require 'wezterm' | |
local act = wezterm.action | |
local window = wezterm.window | |
local config = wezterm.config_builder() | |
config.color_scheme = 'Tokyo Night' | |
-- config.color_scheme = 'Tokyo Night Storm' | |
config.font = wezterm.font_with_fallback { |
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
" 自动安装 vim-plug | |
let data_dir = expand('~/.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 | |
" 插件管理 | |
call plug#begin('~/.vim/plugged') | |
Plug 'joshdick/onedark.vim' " 主题 |
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
/* 引入思源黑体和思源宋体 */ | |
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&family=Noto+Serif+SC:wght@400;700&display=swap'); | |
.document-content p, | |
.document-content body, | |
.document-content span, | |
.document-content ul li, | |
.document-content div { | |
font-family: 'Noto Serif SC', serif !important; | |
} |
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" # 有些情况(vim的colorscheme不生效)需要改用这个配置,一般情况下用下面两条 | |
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
# 用淘宝源下载python包进行安装 | |
v=$1 | |
wget https://npm.taobao.org/mirrors/python/$v/Python-$v.tar.xz -P ~/.pyenv/cache/ | |
pyenv install $v |