Skip to content

Instantly share code, notes, and snippets.

@maokwen
maokwen / xnhe.ps1
Last active July 24, 2025 00:16
微软拼音添加小鹤双拼
if((Test-Path -LiteralPath "HKCU:\SOFTWARE\Microsoft\InputMethod\Settings\CHS") -ne $true) { New-Item "HKCU:\SOFTWARE\Microsoft\InputMethod\Settings\CHS" -force -ea SilentlyContinue };
New-ItemProperty -LiteralPath 'HKCU:\SOFTWARE\Microsoft\InputMethod\Settings\CHS' -Name 'UserDefinedDoublePinyinScheme0' -Value 'XiaoHe*2*^*iuvdjhcwfg^xmlnpbksqszxkrltvyovt' -PropertyType String -Force -ea SilentlyContinue;
rechigroup.com
hotbak.net
kindle8.cc
yunbook123.com
dovov.com
mlog.club
stackoverfill.com
answer-id.com
baike.baidu.com
csdn.net
@maokwen
maokwen / LanguageConfigToXML.vba
Created November 11, 2020 15:49
语言表 Excel 导出 Lua 脚本
Sub MakeXml(iCaptionRow As Integer, iDataStartRow As Integer, sOutputFileName As String)
'
' 导出为xml 宏
'
Dim Q As String
Q = Chr$(34)
Dim NL As String
NL = Chr$(13)
Dim TT As String
TT = Chr$(9)
@maokwen
maokwen / remove-hyperlink-from-pictures.vb
Created February 27, 2020 17:20
Remove hyperlink from pictures
import sys
# hello = "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++."
def cleanup(input):
return ''.join(list(filter(lambda c: c in ['>', '<', '+', '-', '.', ',', '[', ']'], input)))
class stream(list):
def expand(self, index):
@maokwen
maokwen / disable-aosp-keyboard-through-adb.sh
Last active April 26, 2025 14:08
Disable AOSP Keyboard through ADB
adb shell pm disable-user com.android.inputmethod.latin
@maokwen
maokwen / disable-hyper-v-on-boost.md
Created April 24, 2019 04:47
创建引导菜单以启用/禁用 Hyper-v

创建引导菜单以启用/禁用 Hyper-v

  1. 创建引导菜单:

    bcdedit /copy {current} /d "Windows 10 Pro(without Hyper-V)"
  2. 记下{}中的代码{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}

@maokwen
maokwen / U.md
Last active April 18, 2020 18:40

⚠使用此方法会清空 U 盘数据!

好久不用的 U 盘突然电脑认不了了, 用磁盘管理发现被划为了 EFI 分区.

win + R, 输入 Diskpart 打开 Diskpart 工具. 输入:

list disk
@maokwen
maokwen / replace-android-system-webview.md
Last active July 15, 2022 06:25
替换 Android System Webview
  1. 安装最新的 Android System Webview
  2. 拷贝一份 /System/framework/framework-res.apk 的副本到任意位置
  3. 搜索在其中搜索 webview, 将 /android/string/config_webViewPackageName 的值改为 com.google.android.webview
  4. 将修改后的文件覆盖回原位置
  5. 重启