Skip to content

Instantly share code, notes, and snippets.

View gandli's full-sized avatar
🏠
Working from home

gandli gandli

🏠
Working from home
View GitHub Profile
@gandli
gandli / weasel.custom.yaml
Last active June 15, 2024 05:22
鼠须管输入法皮肤_微信键盘配色
```yaml
# weasel.custom.yaml
customization:
distribution_code_name: Weasel
distribution_version: 0.16.1
generator: "Weasel::UIStyleSettings"
modified_time: "Fri Jun 14 23:23:21 2024"
rime_version: 1.11.2
patch:
@gandli
gandli / README.md
Last active June 3, 2024 15:46
Scoop 管理指南

Scoop 管理指南

本文档提供指南,说明如何在 Windows PowerShell 中使用 Scoop 进行软件的更新、备份和恢复。

更新和清理 Scoop、备份 Scoop 安装列表

以下命令行操作会首先更新所有通过 Scoop 安装的应用程序,清理不再需要的旧版本,移除缓存,然后备份当前的应用列表到 JSON 文件,并更新到 GitHub Gist。

scoop update * ; scoop cleanup * ; rm "$HOME\scoop\cache\*" -fo ; `
scoop export | Out-File -FilePath "$HOME\scoopfile.json" -Encoding UTF8 ; `
gh gist edit 2210516c5fdf80dbf2e108ddd51869b2 -a $HOME/scoopfile.json
@gandli
gandli / Brewfile
Last active July 18, 2024 14:34
Homebrew 管理指南
tap "alienator88/cask"
tap "anhoder/go-musicfox"
tap "appleboy/tap"
tap "buo/cask-upgrade"
tap "charmbracelet/tap"
tap "context-labs/mactop", "https://github.com/context-labs/mactop"
tap "dehydratedpotato/tap"
tap "dracula/install"
tap "graelo/tap"
tap "homebrew/bundle"
@gandli
gandli / .commitlintrc.js
Last active January 3, 2024 05:34
.commitlintrc.js
// .commitlintrc.js
/** @type {import('cz-git').UserConfig} */
module.exports = {
rules: {
// @see: https://commitlint.js.org/#/reference-rules
},
prompt: {
alias: {
in: "🎉 chore:庆祝 (初次提交)| Celebrate (initial submission)",
ft: "✨ feat:新功能 | New feature",
@gandli
gandli / set_wallpaper.sh
Last active May 18, 2023 11:55
set_wallpaper.sh
#!/bin/bash
# 配置
DEFAULT_DOWNLOAD_DIR="$HOME/Pictures"
LOG_FILE="/usr/local/bin/set_wallpaper.log"
# 等待10秒钟,确保网络连接已经建立
sleep 10
# 获取bing壁纸JSON响应
@gandli
gandli / The_Oxford_3000.txt
Created May 13, 2023 16:03
牛津3000单词列表
a
abandon
abandoned
ability
able
about
above
abroad
absence
absent
[
{
"cmd": "continue",
"act": "代码中断继续",
"tags": ["continue"],
"enable": true,
"prompt": "代码不完整,请继续按照原格式编写,在`{this code}`之后继续"
},
{
"cmd": "polish",
scoop app manifest
@gandli
gandli / cloudSettings
Last active January 18, 2022 12:47
vscode config sync
{"lastUpload":"2022-01-18T12:47:45.541Z","extensionVersion":"v3.4.3"}
Invoke-Expression (& {
    $hook = if ($PSVersionTable.PSVersion.Major -lt 6) { 'prompt' } else { 'pwd' }
    (zoxide init --hook $hook powershell) -join "`n"
})

oh-my-posh --init --shell pwsh --config D:\scoop\apps\oh-my-posh\current\themes\jandedobbeleer.omp.json | Invoke-Expression

Import-Module Get-ChildItemColor