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
| func main() { | |
| // IEEE is crc32b, which is used to hash bilibili uid | |
| // Encode | |
| uid := "21670130" | |
| h := fmt.Sprintf("%x", crc32.ChecksumIEEE([]byte(uid))) | |
| fmt.Printf("Encoding of %s: %s\n", uid, h) | |
| // Decode | |
| hashed := "6acc8733" | |
| fmt.Printf("Start Decoding... \n") | |
| for i := 1; i < 500000000; i++ { |
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
| #!/usr/local/bin/python3.8 | |
| #!conding=utf8 | |
| import os | |
| from datetime import date | |
| # ==== Config ==== | |
| qgpath = "/Users/sansui233/Library/Mobile Documents/com~apple~CloudDocs/App备份/五笔/qgdict.txt" | |
| lgpath = "/Users/sansui233/Library/Mobile Documents/com~apple~CloudDocs/App备份/五笔/output.txt" | |
| outpath = "/Users/sansui233/Library/Mobile Documents/com~apple~CloudDocs/App备份/五笔/" |
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
| # Import-Module posh-git | |
| # Write-Host ("Current time: " + (Get-Date -Format "yyyy-MM-dd HH:mm:ss")) | |
| C:\Users\lingn\AppData\Local\Programs\oh-my-posh\bin\oh-my-posh.exe init pwsh --config "$env:POSH_THEMES_PATH\pure-time.omp.json" | Invoke-Expression | |
| # C:\Users\lingn\AppData\Local\Programs\oh-my-posh\bin\oh-my-posh.exe init pwsh | Invoke-Expression | |
| # # oh-my-posh init pwsh --config 'onehalf.minimal' | |
| # Invoke-Expression (&starship init powershell) | |
| # Invoke-Expression (&C:\Users\lingn\scoop\shims\starship.exe init powershell) | |
| Import-Module PSReadLine | |
| # Set-PSReadLineOption -EditMode Emacs |
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
| [[ "$-" != *i* ]] && return | |
| function win-alias() { | |
| local name=$1 | |
| local winpath=$2 | |
| alias $name="$(cygpath -u "$winpath")" | |
| } | |
| # win-alias vim 'C:\Users\lingn\scoop\shims\nvim.exe' | |
| # win-alias sudo 'C:\Program Files (x86)\gsudo\sudo.exe' | |
| # 打开文件 |
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
| { | |
| "enableAi": true, | |
| "gptApiKey": null, | |
| "gptUrl": "https://api.openai.com/v1/chat/completions", | |
| "defaultGridEnabled": false, | |
| "defaultPageVisible": false, | |
| "customFonts": [ | |
| "Inter", | |
| "pingfang sc" | |
| ], |
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
| import argparse | |
| import os | |
| import subprocess | |
| import sys | |
| import wave | |
| def check_ffmpeg(): | |
| """Check if ffmpeg is installed.""" | |
| try: |
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
| // modify items | |
| // Remove items by identifiers | |
| modify(mode=mode.multiple | |
| where=this.id(id.restore_previous_versions,id.cast_to_device) | |
| vis=vis.remove) | |
| modify(type="recyclebin" where=window.is_desktop and this.id==id.empty_recycle_bin pos=1 sep) | |
| modify(find="unpin*" pos="bottom" menu="Pin/Unpin") | |
| modify(find="pin*" pos="top" menu="Pin/Unpin") |
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
| " --- 基础设置 --- | |
| syntax on " 语法高亮 | |
| set number " 显示行号 | |
| set relativenumber " 相对行号 | |
| set cursorline " 高亮当前行 | |
| set wrap " 自动折行 | |
| set showcmd " 显示输入的命令 | |
| set encoding=utf-8 " 使用 utf-8 编码 | |
| set laststatus=2 " 始终显示状态栏 |
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
| KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
| T3ZWQ-P2738-3FJWS-YE7HT-6NA3K | |
| KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
| 65Z2L-P36BY-YWJYC-TMJZL-YDZ2S | |
| SFZHH-2Y246-Z483L-EU92B-LNYUA | |
| GSZVS-5W4WA-T9F2E-L3XUX-68473 | |
| FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS | |
| Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4 | |
| DAZPH-G39D3-R4QY7-9PVAY-VQ6BU | |
| KLZ5G-X37YY-65ZYN-EUSV7-WPPBS |
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
| -- ~/.config/yazi/init.lua | |
| require("autosession-win"):setup({ | |
| auto_restore = true -- 启动时自动恢复 | |
| }) | |
| require("omp"):setup() | |
| require("full-border"):setup() | |
| -- require("starship"):setup() |
OlderNewer