中文乱码的根源在于 windows 基于一些历史原因无法全面支持 utf-8 编码格式,并且也无法通过有效手段令其全面支持。
- 安装
"" Source your .vimrc | |
"source ~/.vimrc | |
let mapleader = "\<space>" | |
" 防止leader键移动 | |
nnoremap <space> <nop> | |
vnoremap <space> <nop> | |
""" Plugins -------------------------------- |
23.21.150.121:3478 | |
iphone-stun.strato-iphone.de:3478 | |
numb.viagenie.ca:3478 | |
s1.taraba.net:3478 | |
s2.taraba.net:3478 | |
stun.12connect.com:3478 | |
stun.12voip.com:3478 | |
stun.1und1.de:3478 | |
stun.2talk.co.nz:3478 | |
stun.2talk.com:3478 |
# Manage Windows Defender & Windows Firewall via Local Group Policy | |
$ComputerPolicyFile = ($env:SystemRoot + '\System32\GroupPolicy\Machine\registry.pol') | |
$DefenderKey = 'Software\Policies\Microsoft\Windows Defender' | |
$FirewallKey = 'Software\Policies\Microsoft\WindowsFirewall' | |
$ExploitGuardKey = 'Software\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard' | |
Write-Output "`nChecking for necessary PowerShell modules..." | |
try { | |
# Set PowerShell to TLS 1.2 (https://devblogs.microsoft.com/powershell/powershell-gallery-tls-support/) | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 |
mixed-port: 7890 | |
#---------------------------------------------------# | |
## 配置文件需要放置在 $HOME/.config/clash/*.yaml | |
allow-lan: false | |
mode: Rule | |
log-level: silent | |
external-controller: 127.0.0.1:60000 | |
# 节点配置文件统一存放在 ./profiles/proxies/ 目录中 | |
proxy-providers: |
##### 使用说明 ##### | |
# 1. 请填写 proxy-providers - subscribe - url 为订阅链接 | |
# 2. 下载 https://github.com/Loyalsoldier/clash-rules/archive/refs/heads/release.zip 并解压至 ./profiles/ruleset 文件夹下 | |
# 3. 若需要自动更新 ruleset, 请编辑 rule-providers 下各项 type 为 http | |
##### 参考链接 ##### | |
# 1. clash 样例配置文件 | |
# https://lancellc.gitbook.io/clash/clash-config-file/an-example-configuration-file | |
# 2. clash 规则集 | |
# https://github.com/Loyalsoldier/clash-rules |
//www.lsauer.com 2012 | |
//author: Microsoft Inc. | |
//Type: tab-separated flatfile / datatable | |
Variable Type Description | |
%ALLUSERSPROFILE% Local Returns the location of the All Users Profile. | |
%APPDATA% Local Returns the location where applications store data by default. | |
%CD% Local Returns the current directory string. | |
%CMDCMDLINE% Local Returns the exact command line used to start the current Cmd.exe. | |
%CMDEXTVERSION% System Returns the version number of the current Command Processor Extensions. |
💥 - you should never forget this one
See all open files CTRL + p
Show command palette CMD + p
Show suggestions (intellisense style) CTRL + SPACE either on a new line or by highlighting a word
; Autohotkey Capslock Remapping Script | |
; Danik | |
; More info at http://danikgames.com/blog/?p=714 | |
; danikgames.com | |
; | |
; Functionality: | |
; - Deactivates capslock for normal (accidental) use. | |
; - Hold Capslock and drag anywhere in a window to move it (not just the title bar). | |
; - Access the following functions when pressing Capslock: | |
; Cursor keys - J, K, L, I |
#!/bin/bash | |
xmodmap -e "keycode 66 = Mode_switch" | |
xmodmap -e "keysym i = i I Up" | |
xmodmap -e "keysym j = j J Left" | |
xmodmap -e "keysym k = k K Down" | |
xmodmap -e "keysym l = l L Right" | |
xmodmap -e "keysym u = u U Prior" | |
xmodmap -e "keysym o = o O Next" |