Skip to content

Instantly share code, notes, and snippets.

@kktt007
kktt007 / .ideavimrc
Created March 18, 2025 14:18 — forked from PisecesPeng/.ideavimrc
here is my .vimrc with idea, and :actionlist (IdeaVim v2.1.0)
"" Source your .vimrc
"source ~/.vimrc
let mapleader = "\<space>"
" 防止leader键移动
nnoremap <space> <nop>
vnoremap <space> <nop>
""" Plugins --------------------------------

解决 Git 在 windows 下中文乱码的问题

原因

中文乱码的根源在于 windows 基于一些历史原因无法全面支持 utf-8 编码格式,并且也无法通过有效手段令其全面支持。

解决方案

  1. 安装
@kktt007
kktt007 / public-stun-list.txt
Created November 28, 2023 05:59 — forked from mondain/public-stun-list.txt
Public STUN server list
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
@kktt007
kktt007 / ManageDefender.ps1
Created October 9, 2023 05:32 — forked from wise-io/ManageDefender.ps1
Manage Windows Defender & Firewall Settings with PowerShell and Group Policy
# 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
@kktt007
kktt007 / example-config.yaml
Created January 22, 2023 13:11 — forked from ricky9w/example-config.yaml
Clash config using proxy-providers and rule-providers
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:
@kktt007
kktt007 / clash-config.yaml
Created January 22, 2023 09:45 — forked from xqm32/clash-config.yaml
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 下各项 type 为 http
##### 参考链接 #####
# 1. clash 样例配置文件
# https://lancellc.gitbook.io/clash/clash-config-file/an-example-configuration-file
# 2. clash 规则集
# https://github.com/Loyalsoldier/clash-rules
@kktt007
kktt007 / gist:111383d5e0ba9f39e27e8bfc268e1c01
Created August 18, 2022 09:51 — forked from lsauer/gist:2834199
Windows Environment Variables / PATH variables
//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.
@kktt007
kktt007 / vs-code-keys.mdown
Created April 29, 2021 07:10 — forked from nobitagit/vs-code-keys.mdown
VS Code shortcuts

💥 - 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

@kktt007
kktt007 / capslock_remap_alt.ahk
Created April 29, 2021 03:54 — forked from Danik/capslock_remap_alt.ahk
Autohotkey Capslock Remapping Script. Makes Capslock function as a modifier key to get cursor keys etc. on the left side of the keyboard, so you never have to move your hand to the right.
; 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
@kktt007
kktt007 / map.sh
Created March 31, 2021 05:46 — forked from tacone/map.sh
Sample code to remap the keyboard
#!/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"