This file contains hidden or 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
| #!/bin/bash | |
| # https://github.com/scruel/xiaomi-storage-nas-enable-ssh | |
| # Ver: 1.0.8.425.F24C26D24-REL (Enhanced) | |
| # 食用步骤: | |
| # - 登录小米智能存储客户端,以拉取证书文件 | |
| # - 打开终端(Windows 下请使用 WSL Ubuntu 终端) | |
| # - 终端执行 bash <(curl -s https://gist.githubusercontent.com/scruel/6b01bfa6847170f6edfaa07362b6d2fa/raw/xiaomi-storage-open-ssh-wsl.sh) | |
| # - 提示执行完毕,输出 root 信息即成功,APP 文件中也能看到 SUCCESS。 | |
| # 终端依赖:openssl, curl, ssh-keygen, wslpath (WSL) |
This file contains hidden or 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
| """ | |
| 修正微软拼音输入法无法添加多个格式化自定义短语的问题 | |
| Author: Scruel Tao | |
| """ | |
| import os | |
| import re | |
| import pathlib | |
| import traceback | |
| from pathlib import Path |
This file contains hidden or 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
| @echo off | |
| %1 start "" mshta vbscript:CreateObject("Shell.Application").ShellExecute("%~s0","::","%~dp0","runas",1)(window.close)&&exit | |
| SETLOCAL EnableDelayedExpansion | |
| set PROGRAM_PATH=%USERPROFILE%\anaconda3 | |
| if not exist %PROGRAM_PATH% ( | |
| set PROGRAM_PATH=%USERPROFILE%\mambaforge | |
| ) | |
| if not exist %PROGRAM_PATH% ( |
This file contains hidden or 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
| @echo off | |
| %1 start "" mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c pushd ""%~dp0"" && ""%~s0"" ::","","runas",1)(window.close)&&exit | |
| taskkill -IM "wslservice.exe" /F >nul 2>nul | |
| taskkill -IM "wslhost.exe" /F >nul 2>nul | |
| taskkill -IM "wsl.exe" /F >nul 2>nul | |
| powershell.exe -WindowStyle Hidden -c "wsl" |
This file contains hidden or 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
| # Incremental completion for zsh | |
| # by y.fujii <y-fujii at mimosa-pudica.net>, public domain | |
| autoload -U compinit | |
| zle -N self-insert self-insert-incr | |
| zle -N vi-cmd-mode-incr | |
| zle -N vi-backward-delete-char-incr | |
| zle -N backward-delete-char-incr | |
| zle -N expand-or-complete-prefix-incr |
This file contains hidden or 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
| Java 1 hr 58 mins ██████████████▓░░░░░░░░░ 46.3% | |
| Markdown 37 mins ███████░░░░░░░░░░░░░░░░░ 14.8% | |
| JSON 28 mins ██████░░░░░░░░░░░░░░░░░░ 11.1% | |
| JavaScript 21 mins █████▒░░░░░░░░░░░░░░░░░░ 8.4% | |
| TypeScript 17 mins █████░░░░░░░░░░░░░░░░░░░ 6.9% | |
| PHP 11 mins ████▓░░░░░░░░░░░░░░░░░░░ 4.5% |
This file contains hidden or 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
| /*定义缓存数据 key 生成策略的bean | |
| 包名+类名+方法名+所有参数 | |
| */ | |
| @Bean("wiselyKeyGenerator") | |
| @Override | |
| public KeyGenerator keyGenerator(){ | |
| return new KeyGenerator() { | |
| @Override | |
| public Object generate(Object target, Method method, Object... params) { | |
| StringBuilder sb = new StringBuilder(); |